Jump to content
Sign in to follow this  
Llano

Can't move player into driver seat (moneInDriver)

Recommended Posts

Hi! Feels like i am spamming this forum, but i just can't find the answer on google.

I ahve this simple code. When you spawn, a action is added ("Spawn"), which will spawn a vehicle. This work, but i also want to move the player into the driver seat, but that is not working of some reason. I get no error etc.

player removeAction 0;
_position = getPos player;
_vehicle = "B_Hunter_HMG_F" createVehicle (_position);
_vehicle engineOn true;
_player moveInDriver _vehicle;

Any idea what's wrong?

Share this post


Link to post
Share on other sites

Seems you are using a local variable _player instead of referring to the player variable. Try fixing that in the moveInDriver command.

Share this post


Link to post
Share on other sites
Seems you are using a local variable _player instead of referring to the player variable. Try fixing that in the moveInDriver command.

Oh my... I always do some typos :)

Thank you. I really need a editor that ca n highlight these small wrongs :)

Share this post


Link to post
Share on other sites
Oh my... I always do some typos :)

Thank you. I really need a editor that ca n highlight these small wrongs :)

Notepad++ With SQL syntex, it's in ArmAHolic, it's awesome.

Share this post


Link to post
Share on other sites

Yes the Notepad++ Arma 3 addons work great! I strongly suggest it as well.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×