12-30-2014, 10:08 PM
(12-30-2014, 07:42 PM)Outlawz7 link Wrote: [size=1em]Couldn't you just set the delay in waypoint's timeout field? Also doesn't a trigger synced to a waypoint need to be Switch type?[/size]
I usually use triggers since sometimes you want to be able to just use them with a variable. They don't need to be switch type., actually switch type waypoints have a very different behavior.
If you synchronize a trigger to a waypoint, the unit will move to that waypoint and halt there until the trigger is sprung.
With a switch trigger, it will consider the waypoint its current one and essentially skip it.
Quote:[size=1em]For some variables defined in init.sqf, a isNil check is needed otherwise JIPs will overwrite them.[/size]
In theory yes, but practically, they are just a one-shot event anyway. They are used to trigger something, their value afterwards is pretty much irrelevant.
Actually, I should move them into the init of the FSM. That will ensure they only get set once.
I don't need luck, I have ammo.