Jump to content
Sign in to follow this  
sproyd

How to make movement already happening upon mission load

Recommended Posts

I'm not new to Arma but I'm new to editing so I'm sure there is a simple answer to this;

How do I make it so that units are not stationary upon mission load? Like, I want a rescue boat to be going at full speed (with the player as passenger) as soon as the mission starts - rather than having the AI driver start up the engine and go to a waypoint.

Also (another basic question I'm sure), how do I make the player a passenger in a vehicle upon load?

Thanks team

Share this post


Link to post
Share on other sites

First question, try something like this in the init.sqf:

boat setVelocity [(sin (getDir boat)) * 5, (cos (getDir boat)) * 5, 0.1];
boat engineon true;

This gives it a little push which should be enough.

For the second question, just put this in the players init line:

player moveincargo boat;

Share this post


Link to post
Share on other sites
First question, try something like this in the init.sqf:

boat setVelocity [(sin (getDir boat)) * 5, (cos (getDir boat)) * 5, 0.1];
boat engineon true;

This gives it a little push which should be enough.

For the second question, just put this in the players init line:

player moveincargo boat;

Thanks for your no nonsense answer. I know some of this stuff is basic and we all appreciate the experienced guys helping the influx of editor noobs.

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  

×