OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: dalton 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?
-
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 -
UnitsName setDammage 1;
-
- Make Trigger (boundary (usually 10x500 is good depending on the AO);
- ANYBODY - PRESENT - REPEATING;
{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;
{_x setDir (getDir _x - 180)} forEach thisList;;
ALL
- Make Trigger (boundary (usually 10x500 is good depending on the AO);
- ANYBODY - PRESENT - REPEATING;
{_x setDir (getDir _x - 180)} forEach thisList;;