OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Fatal on 23 Apr 2005, 12:40:14
-
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.
-
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
-
Thanks, that solved all my problems!