Jump to content
Sign in to follow this  
PinBall

Flashes torch

Recommended Posts

is it possible to simulate a unit flashing a torch on off quickly?

I have a chooper heading towards the coast at night and want the guy on the ground to flash a torch on off.

Create a flare breifly at 1m height for a second???

something like that?

Share this post


Link to post
Share on other sites

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

_positionObj = _this select 0

_flare = _this select 1

#start

;;;;;;;;

_temp = _flare camcreate [getpos _positionObj select 0, getpos _positionObj select 1, 1]

~0.5

deletevehicle _temp

~0.3

;;;;;;;;;

_temp = _flare camcreate [getpos _positionObj select 0, getpos _positionObj select 1, 1]

~0.5

deletevehicle _temp

~0.3

;;;;;;;;

~10

goto "start"

That would make a flare that flashes on for 0.5, and of for 0.3, on for 0.5, of for 10 seconds, then repeat

You can change the timings, and how many flashes on/off

The script it called by :

[this,"flare"] exec "scriptname.sqs"

I included the changable flare bit so you dont need to change the create "flare" thing on every line if you decide to change the object smile_o.gif

Hope it works/you understand it

- Ben

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  

×