OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Aldo15 on 22 Jan 2011, 23:58:32
-
Hi all ...!!
I'm trying to make a teleport scritp, I think it's so. Ok this is what I've done !!!
1. I put two soldiers -----> side West
2. i put a house on the map
3. I put a Castle -----> Name. Maruh
4. I Put a trigger and this are parameters:
Activation ----> West -----> several times
Condition ----> This
OnActivation ----> plye = thislist ; Qp = true
5. I put another trigger and this are parameters
Several times
Condition ----> Qp
Onactivation -----> {_x setPos [(getPos Maruh select 0) , (getPos Maruh select 1) , 22]} foreach plye
I need is that the above is repeated several times..!!! Just work 1 time
~aldo
-
You only need one trigger.
Side >> Repeatedly
Condition: this
OnActivation: {_x setpos [(getpos Maruh select 0),(getpos Maruh select 1),22]} foreach thislist
The variables may be messing things up for you, because you never switch their status which could prevent the trigger from deactivating thus preventing it from re-activating.
The above will work though and free up unnecessary variable space as well as decrease the amount of trigger usage.
-
Ohh !!! Worked !!!! :D
Hey Thanks You!!! :good:
I have another question: I've decrypted the PaindBall Mission, to play it in the editor. I changed some weapons and I put some Addons, but when I save in Multi-player and I try play, I can not play it because the mission is completed, without I can play.!!!
~Aldo
-
That means that the condition for the end trigger is being satisfied at mission start. Find the end trigger and make sure that the condition is what you need it to be.
-
the truth isn't the trigger because it only I've changed somo weapons. I have not modified nothing. Why not try?
-
Being that this is Multiplayer, perhaps its better that you search that area first and then post a topic if you find nothing. Don't post about it anymore into this one since it covers a different topic. Thanks.