Difference between revisions of "Are-waypoints-done-delay"

From FreeSpace Wiki
Jump to: navigation, search
m (Added 'comments' heading)
(Comments)
 
Line 8: Line 8:
 
===Comments===
 
===Comments===
 
Using this for large ships is risky, as they can sometimes miss the waypoint slightly and the event will then never become true. This is not a problem for fighter size ships or small transports like the [[GTT Elysium|Elysium]], only for true capital ships due to their terrible turning rate.
 
Using this for large ships is risky, as they can sometimes miss the waypoint slightly and the event will then never become true. This is not a problem for fighter size ships or small transports like the [[GTT Elysium|Elysium]], only for true capital ships due to their terrible turning rate.
 +
 +
Instead, using a combination of [[Less-than]] and [[Distance]] can accomplish the same for capital ships by checking if the ship is within a small distance from the desired waypoint, but without the risk of problems.
 
[[Category:Retail SEXPs]]
 
[[Category:Retail SEXPs]]

Latest revision as of 17:05, 22 May 2006

Waypoints done delay (Boolean operator)
        Becomes true <delay> seconds after the specified ship has completed flying the specified waypoint path.

Returns a boolean value; Takes 3 arguments:
        1:      Name of ship we are checking.
        2:      Waypoint path we want to check if ship has flown.
        3:      Time delay in seconds (see above).

Comments

Using this for large ships is risky, as they can sometimes miss the waypoint slightly and the event will then never become true. This is not a problem for fighter size ships or small transports like the Elysium, only for true capital ships due to their terrible turning rate.

Instead, using a combination of Less-than and Distance can accomplish the same for capital ships by checking if the ship is within a small distance from the desired waypoint, but without the risk of problems.