Jump to content
Sign in to follow this  
1para{god-father}

setVehicleIni is this correct ?

Recommended Posts

I am creating some IED's objects and need to add the following to the Init , is this correct ?

create Objects..

blar blar blar


_ied setVehicleInit "null= [this,100] execVM "scripts\InitIED.sqf";
processInitCommands;

Share this post


Link to post
Share on other sites

This

_ied setVehicleInit "null= [this,100] execVM "scripts\InitIED.sqf";
processInitCommands;

Should be this...

_ied setVehicleInit "null= [this,100] execVM 'scripts\InitIED.sqf';"
processInitCommands;

If this was just pseudo then don't mind what I said, but yeah that looks as if it should work. But there's really only one way to find out.

Share this post


Link to post
Share on other sites
I am creating some IED's objects and need to add the following to the Init , is this correct ?

create Objects..

blar blar blar


_ied setVehicleInit "null= [this,100] execVM "scripts\InitIED.sqf";
processInitCommands;

Look at your quotes. The way the engine reads your code is like this...

create Objects..

blar blar blar


_ied setVehicleInit "null= [this,100] execVM " //It doesn't know what to do here, so it just fails to do anything and stops the script.

scripts\InitIED.sqf"; // this is cut off.

processInitCommands; // this is never ran.

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  

×