Home   Help Search Login Register  

Author Topic: Trigger (thislist)  (Read 1660 times)

0 Members and 2 Guests are viewing this topic.

24Gamer

  • Guest
Re:Trigger (thislist)
« Reply #15 on: 16 Jun 2004, 15:59:37 »
yeah, still that aint what im trying to achieve but thanks for the help

Offline Blanco

  • Former Staff
  • ****
Re:Trigger (thislist)
« Reply #16 on: 16 Jun 2004, 16:13:42 »
ok, try this, untested

execute it with [thislist] exec "deletebodies.sqs" in the on activation of your trigger ACTIVATED,ONCE by the side you want.

Code: [Select]
;deletebodies.sqs
; only men will be deleted!
_list = _this select 0

_i = 0

#loop
_body = _list select _i
?"man" countype [_body] > 0 && !alive _body : deletevehicle _body
_i = _i + 1
?_i < count _list : goto "loop"

exit
« Last Edit: 16 Jun 2004, 16:18:21 by Blanco »
Search or search or search before you ask.