Jump to content
Sign in to follow this  
SouthSaturnDelta

Inserting triggers inside a script

Recommended Posts

Hi folks,

   I need to find a way of placing several triggers inside of a script.

The plan is that instead of having to set up the triggers in a mission, the script sets them up so the user only uses a single script in the init line.

Is there some way for acheiving this at all ?

Say i have 3 triggers, x,y,z.How do I add these into script A so that in any mission these triggers are already placed from within the script?

The plan is that an addon I'm working on will be more user friendly if these triggers dont always have to be placed for it to work.

Many thanks,

SSD smile_o.gif

Share this post


Link to post
Share on other sites

I don't know if this should work, but why don't you try to do what you want, all by script? It's more work than by triggers, but it makes a cleaner mission edit. I use only triggers for mission ending and radio calls.

By smart use of parameters, maybe you could even avoid using global variables.

Share this post


Link to post
Share on other sites

Possibly mate, I know Unified Artillery pulls it off so it is do-able.

As you say triggers are the easier way when using radio calls ect, but life would be made a hella lot easier for everyone to use it in mission making, ect.

I'll delve into this area more as its just a cleaner way of doing things and removes ther hassle factor too.

Thanks,

SSD

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  

×