OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: HuNtEr-exz on 01 Sep 2002, 13:21:31

Title: Help with ADDACTION
Post 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)
Title: Re:Help with ADDACTION
Post by: HuNtEr-exz on 01 Sep 2002, 13:27:38
dw i got it ?!(side player==east):exit
Title: Re:Help with ADDACTION
Post by: HuNtEr-exz on 01 Sep 2002, 13:33:24
lol figures that out too u define it after
Title: Re:Help with ADDACTION
Post by: Messiah on 01 Sep 2002, 16:28:35
ummmmm - so, does it work now>?
Title: Re:Help with ADDACTION
Post by: A5hley on 01 Sep 2002, 21:13:56
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?
Title: Re:Help with ADDACTION
Post by: HuNtEr-exz on 02 Sep 2002, 14:09:24
A5hley
do you mean so only 1 side gets the action or 1 person?
Title: Re:Help with ADDACTION
Post by: Pope_Zog on 03 Sep 2002, 20:40:28
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
Title: Re:Help with ADDACTION
Post by: A5hley on 03 Sep 2002, 23:17:59
i mean 1 person sorry.
Title: Re:Help with ADDACTION
Post by: CapMorgan on 04 Sep 2002, 03:54:29
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.
Title: Re:Help with ADDACTION
Post by: KTottE on 04 Sep 2002, 16:58:10
And that could be setpos:ed ontop of the player in question, right?
So he would have the action all over the map.
Title: Re:Help with ADDACTION
Post by: Pope_Zog on 05 Sep 2002, 13:49:30
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