Home   Help Search Login Register  

Author Topic: Need some help with a Script guys PLEASE  (Read 710 times)

0 Members and 1 Guest are viewing this topic.

Ddart

  • Guest
Need some help with a Script guys PLEASE
« on: 25 Dec 2002, 18:40:40 »
Ok here's my dilema I'm building a mission where a 6 man sqad of recon guys captures an opfor general I need a script for the trigger that will allow the opfor general to attach himself to any of the 6 remaining recon guys.. I can't seem to get the "join" command to work  any help would be greatly appreciated.   ???

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Need some help with a Script guys PLEASE
« Reply #1 on: 25 Dec 2002, 19:07:02 »
the join command works like this, it should be good for what you are trying to do

[generalsname] join unitname

Ddart

  • Guest
Re:Need some help with a Script guys PLEASE
« Reply #2 on: 25 Dec 2002, 19:53:25 »
Right, I can get the General to join one unit but if that particular unit is dead then how do I get him to join the next unit in the group? the unit's names are West1 through West6. and when I try to add mulitple names with the join command I get an error that says Type array expected object.

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Need some help with a Script guys PLEASE
« Reply #3 on: 25 Dec 2002, 21:41:10 »
ok put this in the init field of the group leader

squad = group this

and use this to get the guy to join

[generalsname] join leader squad

Ddart

  • Guest
Re:Need some help with a Script guys PLEASE
« Reply #4 on: 26 Dec 2002, 01:33:54 »
Ok we're getting Closer, but now if I don't tell the other sqad members to "hold fire" they shoot the Opfor General that their supposed to ubduct.  any thoughts?

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Need some help with a Script guys PLEASE
« Reply #5 on: 26 Dec 2002, 01:35:52 »
you need to put this in the generals init field

this setcaptive true

then nobody will shoot at him