OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Capt Ryan on 20 May 2003, 21:04:39

Title: trigger activation second time activated
Post 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

Title: Re:trigger activation second time activated
Post by: Terox on 20 May 2003, 22:43:41
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
Title: Re:trigger activation second time activated
Post by: Capt Ryan on 23 May 2003, 16:37:16
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

Title: Re:trigger activation second time activated
Post by: Doolittle on 29 May 2003, 00:14:03
If you have it just grouped to player then do Condition:
Code: [Select]
this and (getPos thisList) select 2 < 3...or maybe..
Code: [Select]
this and player in thisList and (getPos player) select 2 < 3Doolittle
Title: Re:trigger activation second time activated
Post by: Capt Ryan on 17 Jun 2003, 20:24:20

Thanx very much   -    :o

Ryan