Jump to content
348809442

how can cops can enter vehicles without unlocking

Recommended Posts

Hello, what I want to ask is how can the policeman get on and off the car without unlocking it? Specifically, the police can get on and off the car directly through a mouse wheel with a key to get on and off. I read some tutorials, but I did not find the functions. h file n_setupActions. I hope you can help me. Thank you in advance!

The version I run is Altis life 4.0

Share this post


Link to post
Share on other sites
8 hours ago, stanhope said:

你应该在altis生活论坛上询问。

One more question, please.

class Item4067
        {
            dataType="Marker";
            position[]={15180.207,0,17357.873};
            name="cop_car_4";
            type="Empty";
            angle=332.5929;
            id=35488;
            atlOffset=-17.913834;
        };

 

angle=332.5929;
            id=35488;
            atlOffset=-17.913834;  What does this mean?

 

How to find him in the editor, thank you!

Share this post


Link to post
Share on other sites

You need to put that in the cop init, sorry if the script is wrong, im scripting in my iPhone so lets go:

 

 

Copy the next code until last };

 

// By FuRixX (my credits xD)

 

if (side player != WEST) exitWith {};

nomore = 0;

 

while {true} do {

if (cursorTarget isKindOf "Car" and player distance cursorTarget <= 2 and nomore == 0) then {

nomore = 1;

furix = player addAction ["Driver",'player moveInDriver cursorTarget; player removeAction furix; nomore = 0;'];

}; 

sleep 0.1;

};

 

//Code finished -

 

And thats the script i dont know if that work its posible that have a wrong code but i cant check becouse im not im my computer so sorry, if thats work say me to know and if dont work say me to and i fix the code 😄

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

×