Home   Help Search Login Register  

Author Topic: setting init in the createVehicle command  (Read 1462 times)

0 Members and 1 Guest are viewing this topic.

Offline jphilapy

  • Members
  • *
  • I'm a llama!
setting init in the createVehicle command
« on: 24 Jan 2006, 08:52:20 »
Hi,

I am using the 'createVehicle' command in my script. How can I also set something to initialize regarding the vehicle? If there is away to set a value in the init of the newly created vehicle then that would solve my problem.

Thanks,
Jeff

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:setting init in the createVehicle command
« Reply #1 on: 24 Jan 2006, 10:47:28 »
The comref states that this is possible for createUnit. The option to include an init line is not given for createVehicle.

But since the createVehicle command lets you name the created unit:
Code: [Select]
_tank = "M1Abrams" createVehicle getmarkerpos "tankFactory"
it should be possible to issue commands and change settings regarding _tank from a script
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline jphilapy

  • Members
  • *
  • I'm a llama!
Re:setting init in the createVehicle command
« Reply #2 on: 24 Jan 2006, 11:50:36 »
ok thanks