Home   Help Search Login Register  

Author Topic: createvehicle - can't getIn or interact!  (Read 1165 times)

0 Members and 1 Guest are viewing this topic.

Offline zerbober

  • Members
  • *
createvehicle - can't getIn or interact!
« 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:
Code: [Select]
_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.

Offline dr. seltsam

  • Members
  • *
Re: createvehicle - can't getIn or interact!
« Reply #1 on: 21 Sep 2008, 20:38:42 »
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.

:)

Offline zerbober

  • Members
  • *
Re: createvehicle - can't getIn or interact!
« Reply #2 on: 29 Sep 2008, 11:46:34 »
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: