OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: zerbober on 21 Sep 2008, 19:44:23
-
Hi,
Im having problems with the command "createvehicle". I try to create a tank that can be used by players and units. Well, the tank is being created, but when I test the mission and try to use it there are no action entries. No "Get in..." and also no "put weapon in...". I cant interact with the tank in any way. It's like dead. However it can be adressed, it can be destroyed (inside the world with rockets), moved (by bumping into it), and deleted (command "deletevehicle"). I also checked if it's locked, but it isnt.
I used the command as decribed in CommandsReferece:
_tank = "M1Abrams" createVehicle getMarkerPos "markerName" Does anyone know what I'm doing wrong?
I also tried "camcreate" - same result. I just dont get it.
Im sorry if this has been already postet. I tried to search, but there were just too many entries. If thats the case just delete my post, if you wish.
-
You have 2 choices:
1. Wait 20 seconds or so, and then the user actions will appear.
or
2. after your createVehicle command put
player reveal _tank
into the script. The user actions will appear then.
:)
-
Thanks @ Dr.Seltsam
Thats it. Your Tip Nr 1 did it. You just have to wait half a minute, then the action menu appears. I always spawned directly at the vehicle, didnt think about waiting.
Problem SOLVED. :good: