Jump to content
Sign in to follow this  
subliminalss

Execute SQF on a unit once created for Random loadouts.

Recommended Posts

Hi guys,

I'm sorry if this has been asked before, I have searched endlessly and pondered about this for about a month.

I want to create a replacement config for the guerrilla faction but would like to have a random load out.

Is it possible to execute an SQF on a unit once it is created from an add on. I.e. creation of the unit then editing its load out based on scripts in the addon directory?

I think I'm theorizing this because I once saw an SQF being called for a vehicle like one of the Helo addons with fast roping from the units config.

Any help would be appreciated, did I dream this? or is it possible or easy and I'm just missing the point?

Thanks in advance.

---------- Post added at 02:47 PM ---------- Previous post was at 02:39 PM ----------

Who know there are tools to unpack pbos and bins when you don't have admin privileges so got this if this works on a unit over just a vehicle I think its a good lead:

class EventHandlers {

init = "[_this select 0] execVM "\pathto\file.sqf"";

};

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  

×