Home   Help Search Login Register  

Author Topic: How to name vehicles with the "createvehicle" command?  (Read 770 times)

0 Members and 1 Guest are viewing this topic.

Fatal

  • Guest
So here's my problem. At certain point in game, I want to create a vehicle with the createvehicle command, and then at the same time I want it to be manned with commander, gunner and driver.

I've gotten everything else work, but I haven't been able to find out how to name the vehicle so that I could use the moveinvehicle command with the crew.

I believe I'm supposed to name the tank somehow at it's creation, how?

Thanks in advance, and sorry if this has been asked before. I searched through the forums, FAQs and tutorials with no results.

EDIT: the button "confirm changes" or something isn't working on the profile page.
« Last Edit: 23 Apr 2005, 12:44:17 by Fatal »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:How to name vehicles with the "createvehicle" command?
« Reply #1 on: 23 Apr 2005, 12:47:55 »
Try this:

nameofmytank = "M1Abrams" createvehicle getpos pos

pos would be wherever you want the tank to appear
nameofmytank is of course the name you want to give the tank.



Planck
« Last Edit: 23 Apr 2005, 12:48:29 by Planck »
I know a little about a lot, and a lot about a little.

Fatal

  • Guest
Re:How to name vehicles with the "createvehicle" command?
« Reply #2 on: 23 Apr 2005, 13:36:35 »
Thanks, that solved all my problems!