Jump to content
kocrachon

Prevent player from taking over crew positions?

Recommended Posts

Something I figured would be easy but I can't seem to figure out...

 

I have some AI controlled APCs that transport my players around, but players are able to steal the the crew positions. How do I make it so my players can move in and out of the APC, but not take a crew position that is filled with an AI already?

 

Tried searching this but get so many unrelated results. 

Share this post


Link to post
Share on other sites

You can use a locked vehicle, and add a custom action (car addAction) to have player enter. A player cannot enter a locked vehicle, but they can be in one.

player moveInCargo car;
You can also script exit (doGetOut player), so you don't need another action to get out.

Share this post


Link to post
Share on other sites

You can try locking all the turrets which should leave the cargo positions available..

//Lock all turrets that have someone in them
{
    if !( isNull (this turretUnit _x) ) then {
        this lockTurret [_x,true]
    };
}forEach allTurrets this;
//Lock drivers position
this lockDriver true;

Share this post


Link to post
Share on other sites

I think the most efficient way to do it is Larrow's way.

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

×