OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: B-2-0 on 02 Jun 2003, 01:31:53
-
Ok, i have used a system in a C&H whereas any player entering the opposing team's safezone is setpos'd to a prison area on the other side of the island and is trapped till a team-mate comes to pick them up.
East Safezone Trigger;
Condition:(vehicle player in thisList) AND (side player != EAST)
On Activation:player setPos (getMarkerPos "Outcast"); player setDammage 0.9; hint "You violated the East respawn area!!\n \nTake a seat, you are here till a team-mate rescues you!!"Now, i need to remove all weapons from the player so they can't kill themselves and respawn....i tried 'player removeallweapons' but it didn't work....how is it done?
Thanx in advance
-
"_X removeallWeapons" forEach thislist
place that in a trigger activated by west present and each time a west unit enters it it will take thier weapons away. ;D
-
Thanx for the reply Beowulf, this gives an error - unknown operator removeallweapons
Any ideas?
-
trigger: west
or east
or anybody
present or not present or detected, etc
Condition true
On Activation: "removeAllWeapons _x" forEach thislist
sorry had it backwards B-2-0
-
Thanx Beowulf....u made 1 mistake tho...
Condition true
Only works if set to 'this' ;)
:cheers: