Home   Help Search Login Register  

Author Topic: Removing weapons  (Read 1223 times)

0 Members and 1 Guest are viewing this topic.

B-2-0

  • Guest
Removing weapons
« 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.

Code: [Select]
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
« Last Edit: 02 Jun 2003, 01:39:03 by B-2-0 »

beowulf2014

  • Guest
Re:Removing weapons
« Reply #1 on: 02 Jun 2003, 02:40:03 »
"_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
« Last Edit: 02 Jun 2003, 02:40:32 by beowulf2014 »

B-2-0

  • Guest
Re:Removing weapons
« Reply #2 on: 02 Jun 2003, 03:03:59 »
Thanx for the reply Beowulf, this gives an error  -  unknown operator removeallweapons

Any ideas?

beowulf2014

  • Guest
Re:Removing weapons
« Reply #3 on: 02 Jun 2003, 03:15:49 »
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

B-2-0

  • Guest
Re:Removing weapons
« Reply #4 on: 02 Jun 2003, 04:15:05 »
Thanx Beowulf....u made 1 mistake tho...

Quote
Condition true

Only works if set to 'this' ;)

 :cheers: