Home   Help Search Login Register  

Author Topic: ThisList  (Read 485 times)

0 Members and 1 Guest are viewing this topic.

Silencer

  • Guest
ThisList
« on: 31 Dec 2004, 12:41:17 »
Hi,

If I have 4 soldiers (E1,E2,E3 and E4) how can i tell them to be GoupEast?

Then I want to do:

GroupEast SetDammage 1

How can I get this to work??

Thanks  :)

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:ThisList
« Reply #1 on: 31 Dec 2004, 13:38:47 »
Hi,

You dont tell something to a soldier... :P

You COMMAND them ;D

The command "join"will do fine here..

unitArray join group

http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:ThisList
« Reply #2 on: 31 Dec 2004, 13:45:36 »
The soldiers need to be in one group.  In the init field of one of the units put

GoupEast = group this

If they are not in one group then

[E1,E2,E3] join E4

GroupEast = group E4

then

{_x setDammage 1} forEach units GroupEast

will kill them all
« Last Edit: 31 Dec 2004, 13:47:27 by THobson »