OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Capt Ryan on 20 May 2003, 21:04:39
-
I surfed around but cant find an answer to this :
Is it posible to , or how to let the trigger only be activated the second time troopers/player pass it - Repeat or timer wont do .
Ryan
-
I dont know what you want to do with the trigger, bit what you could do is have the trigger run a script
_________________________________________________________________
In the trigger
On Activation: [this] exec "myscript.sqs"
_____________________________________________________________________
In your init.sqs type the following line
count= 0
_______________________________________________________________________
;;"myscript.sqs"
count = count+1
?(count==2) goto "Donetwice"
goto "End"
#Donetwice
(Enter the command lines you wish to happen when the trigger is activated on the second time)
#End
Exit
-
Thanx ill try that
The reason for the use is this -
The Player/troopers in cargo of a plane in flying route to dropzone will pass the trigger once in flight - the very same trigger shut only be activated when the player cross the trigger on ground the second time as its works as a navigation hint - I know how to exclude the trigger from being activated from planes , but the trigger is grouped to player for only his activasion and therefor its triggered by passing in flight -
It will also come in very handy in other situations ;o)
Ryan
-
If you have it just grouped to player then do Condition:
this and (getPos thisList) select 2 < 3...or maybe..
this and player in thisList and (getPos player) select 2 < 3Doolittle
-
Thanx very much - :o
Ryan