OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bored_onion on 29 Jun 2004, 14:01:29
-
hey,
I'm kinda new to all this scripting but can get my head around a lot of scripts and make my own if i need to (not very advanced though :P). Anyway, i know that if i want a unit to wait until it continues on its waypoints until something happens then the waypoint needs a condition or a trigger synchronised with it with a condition. However, is there anyway i can attach a script with a condition to the waypoint?For example, if I needed a unit to continue moving when the player selects an action in the action menu (placed using the addaction command).
Any ideas or suggestions greatly appreciated! ;D
-
have the waypoint or trigger activate on condition: boolean
simply have the script that is run from the addaction, make that boolean become true
eg
SCRIPT ENTRY
tx_MoveOn = true
##############################
and the waypoint or trigger
change
Condition:this
to
Condition: tx_MoveOn
-
thanks,
it worked great