Jump to content
Sign in to follow this  
Sgt. Stryker

Flare script

Recommended Posts

Ok heres the deal, I am making a night Nam map with NVA sieging my hill. I want to make a script or have some way so that theres constantly a flare in the air (3 actually just on different parts of the map). I searched for flare but all i coudld find was flare addon stuff. Any help would be greatly apperciated.

Share this post


Link to post
Share on other sites

You know what else would be nice? A script that adds an action for a soldier to fire a flare.

/random

Share this post


Link to post
Share on other sites

Use something like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#start

_flare1= "flare" camCreate [getPos flare1 select 0, getPos flare1 select 1, 200]

_flare2 = "flare" camCreate [getPos flare2 select 0, getPos flare2 select 1, 200]

_flare3 = "flare" camCreate [getPos flare3 select 0, getPos flare3 select 1, 200]

~20

goto "start"

To adjust the height of the flare change the number at the end of each array. To adjust the timing between each flare change the ~20 number.

You will need to create three game logics, flare1, flare2, flare3. These are where the flares will be created.

RED

Share this post


Link to post
Share on other sites

thank you so much it worked like a charm, you will go in my readme for sure!!!!!!!!!!

Share this post


Link to post
Share on other sites

It don't seem to be workin for me, where do i put the script? And say if i make a script called "flare.sqs" with that scripting in it, should i just put [] exec "flare.sqs" in the init's of each of the game logics ?

Share this post


Link to post
Share on other sites

Run the script flare.sqs from a trigger with the condition set as true if you want it to start from the start of the mission.

RED

Share this post


Link to post
Share on other sites

To not even have a trigger, put it in init.sqs (you have to make it, it execs automaticly at teh start of your mission)

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  

×