Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Goetterfunke2

New flare function in 1.46: solution

Recommended Posts

Since 1.46 there is a new easy to use function

if you fire a flare, the "onFalre.sqs" is called in missionfolder

it gets the flarecolour and the gunner who fired it as array

watch this example mission i made

http://www.k-foren.de/attachm....=296532

So you can call Support if you fire a flare now

you can even depend it on flare colour

e.g.

green: evacuate

red: need support

etc..

Share this post


Link to post
Share on other sites

It looks like somebody is really reading readme file:

- When a starshell is lit, script onFlare.sqs in mission directory is called. Received [[R, G, B], gunner], where R, G, B is the light color from <0, 1>.

This is a good habit. Sometimes there is really something usefull in there. smile.gif

Share this post


Link to post
Share on other sites

yes, i read it there

the problem was s.th. i didnt know:

you can have arrays inside arrays (=subarrays?)

so this example is about how people can manage this smile.gif

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  

×