Home   Help Search Login Register  

Author Topic: trigger question  (Read 1264 times)

0 Members and 1 Guest are viewing this topic.

Offline dalton

  • Members
  • *
  • i R n00b
trigger question
« on: 10 Jun 2008, 02:46:24 »
ok so how would i make a trigger as a boundary? for example, if i were designing a multiplayer mission and a certain player were to cross this boundary, he and only he would die. How would i direct this at one player instead of everyone in the server?
"freedom aint free"

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Re: trigger question
« Reply #1 on: 10 Jun 2008, 08:18:38 »
This is not the Multiplayer Section but doing this should work. When you are building the mission if you give the playable units names you can just make a trigger the size of the boundary you want and attach the trigger to the unit you want and then setDammage that unit via it's name;

1.) Create the trigger to the desired boundary size...
2.) Group the Trigger to the desired unit (by selecting group & dragging a line from the trigger to the unit)
3.) Select the triggers Activation to - Group Leader - Not present
4.) In the 'On Act.' field -
Code: [Select]
UnitsName setDammage 1;
« Last Edit: 10 Jun 2008, 08:24:19 by Carroll »

Offline Rommel92

  • Members
  • *
Re: trigger question
« Reply #2 on: 10 Jun 2008, 23:43:04 »
- Make Trigger (boundary (usually 10x500 is good depending on the AO);
- ANYBODY - PRESENT - REPEATING;
Code: [Select]
{if(_x == UnitsName) then {_x setDir (getDir _x - 180)}} forEach thisList;;

If you wanted this for all players, or a certain side:

OPFOR Only;

- Make Trigger (boundary (usually 10x500 is good depending on the AO);
- OPFOR - PRESENT - REPEATING;
Code: [Select]
{_x setDir (getDir _x - 180)} forEach thisList;;

ALL

- Make Trigger (boundary (usually 10x500 is good depending on the AO);
- ANYBODY - PRESENT - REPEATING;
Code: [Select]
{_x setDir (getDir _x - 180)} forEach thisList;;