Jabonko
Registered:1399758824 Posts: 2
Posted 1399777592
Reply with quote
#1
Is there a way to test for something to be false? In this particular instance, I'm trying to keep players docked at a station for a minute while they receive a data upload. Is there a <if_not_docked /> statement I can use to make sure they don't sever the link?
shrimpyhugs
Registered:1386409632 Posts: 31
Posted 1399802120
Reply with quote
#2
use the if_docked and when it is triggered it causes a variable to go from 0 to 1, and then test for the integer to be 0, thats probably the easiest workaround
Jabonko
Registered:1399758824 Posts: 2
Posted 1399818709
Reply with quote
#3
I'm glad you suggested that. As I was drifting off to sleep last night I thought that might be a possibility. But I'm new to Artemis scripting and I was half-asleep so I wasn't confident. Edit: Will the isDocked variable revert to 0 if they un-dock from the station?
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1399907582
Reply with quote
#4
The old work-around for this has always been to start a 1 second timer when the player ship is docked. If that timer every reaches zero then the player ship has been undocked for about 1 second.
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill