Jump to content
Sign in to follow this  
Palmi69

setVehicleInit

Recommended Posts

Hi everyone,

 

Is Someone knows how enter an init code on  spawned object by scripting ?

 

(i know for setVehicleInit, the command is aborted)

 

but wouldn't there be another way ? 

 

thanks everyone for help !

Share this post


Link to post
Share on other sites

Hey, is there any specific reason you need it to be an init code?

 

If you have an object spawned in a script, then you can run code on it straight away in the same script, for example:

// spawn a vehicle
private _vehicle = "B_MRAP_01_F" createVehicle (getPos player);

// run some code as if it was init code
_vehicle setFuel 0.1;

 

  • Like 3

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  

×