Jump to content
Sign in to follow this  
Psycho5553

Addaction GTA Style.

Recommended Posts

Pull Out action

I want to make an action on all cars that says ''Pull out'' And when you do it the guy in the car poofs/jump out (Like in GTA when u steal an car)

But i need help with the SQF file. What should i write in it??!

Share this post


Link to post
Share on other sites

At a guess

vehicles init

this addaction ["pull outt driver", "DriverEject.sqf"];

DriverEject.sqf

_target = _this select 0;
_caller = _this select 1;
_id = _this select 2;

if (speed _target < 10) then 
{
_driverVehicle = driver _target;
_driverVehicle action ["eject", _target];

waituntil {_driverVehicle != _driverVehicle};

_caller action ["GetInDriver", _target];
}
else
{
 hint "hes driving too fast";
};

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  

×