Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Jabonko

Registered:
Posts: 2
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:
Posts: 31
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:
Posts: 2
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

Avatar / Picture

Administrator
Registered:
Posts: 2,990
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
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.