Jump to content
Sign in to follow this  
blanic

Help with initialize

Recommended Posts

If i put the following into the init of the vehicle it works fine

nul = [this,"CAR"] execVM "mountOnC130\mount_vcl_init.sqf"

but what I want to do is add it to the vehicle after a trigger happens, but when I try it is not initializing it.

Also I want it to trigger if you are in a certain vehicle, from the class name not the actual name.

Thanks

Share this post


Link to post
Share on other sites

Probably better solutions around, but try having the init line active from start, but the script will waitUntil{someTriggerCondition} before continuing, and having the trigger set someTriggerCondition=true. Maybe someTriggerCondition needs to be initialized to false, not sure.

Not sure what you mean with the next question. Certain vehicle, but not from vehicle itself but from class? Doesn't make much sense to me.

Share this post


Link to post
Share on other sites

what I mean from the class name is, to work on the object itself as opposed to what name you give it. The name will be random so there is no way for me to place it on the name, thats why if say I want it to initialize when an ATV spawns, I want the code to initialize it with it at that time.

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  

×