Jump to content
Sign in to follow this  
PicVert

Help for noob and script :(

Recommended Posts

I would make differant heli dust script for differant terrain, but I have only one problem RGR,

How can I make somthing in editor like : DESERT = true then the right script is activated by the addon

can I make somthing like this :

In editor I create a trigger with activation field : DESERT = true and deactivation DESERT = false or by the init.sqs of a mission with activate the DESERT = true

and the script is called by the event engine of the addon

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

_chopper = _this select 0

DESERT = false

SNOW = false

#loop

~5

? DESERT = true : [_chopper] exec "desert_dust.sqs"

? SNOW = true : [_chopper] exec "snow_dust.sqs"

goto "loop"

is it possible like that ?

please dont laught too much tounge_o.gif I laught alone and I cry too and I laght ... crazy_o.gif

how can I define the DESERT and other variable to get right in the same idea.

Share this post


Link to post
Share on other sites

Well you can put desert = true in the init.sqs

and also you will have to execute your script there aswell:

_chopper = _this select 0

DESERT = false

SNOW = false

#loop

~5

? DESERT = true : [_chopper] exec "desert_dust.sqs"

? SNOW = true : [_chopper] exec "snow_dust.sqs"

goto "loop"

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  

×