OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: HuNtEr-exz on 01 Sep 2002, 13:21:31
-
how can u make it so an add action can only be used by one side? and how can i make it so a marker can only be used by 1 side?
oh and while im at it just say some one was killed how can i make it so it tell you who did it? (only applys to players not ai)
-
dw i got it ?!(side player==east):exit
-
lol figures that out too u define it after
-
ummmmm - so, does it work now>?
-
Do u know how to make so only the unit in the in the certain area gets the addaction command and not the whole side, i had this problem in a map where when 1 person had the addaction everyone got it, i have sorted with loads of triggers for each person but is their an easier way?
-
A5hley
do you mean so only 1 side gets the action or 1 person?
-
You could try adding the action to a static object - that way only the players close to the object will get the action.
Pope Zog
-
i mean 1 person sorry.
-
as pope said:
place an object (inv. helipad), name it (here).
make a trigger
cond:
side player==east && player distance here <20
on activation:
player addaction ["action", "action.sqs"]
there you go.
-
And that could be setpos:ed ontop of the player in question, right?
So he would have the action all over the map.
-
I don't think that's neccessary. When the action is added to the player object then it should stay with it - wherever it may move.
Pope Zog