Jump to content
Sign in to follow this  
kuwahara<ANZAC>

script help please!

Recommended Posts

im a script noob and have VERY limited knolage on scripting.

can someone please help me add a condition to this script if its possible?

what i am hoping to do is:

run this on init>

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

_injured = _this select 0

_injured setCaptive true

_injured switchMove "AdthPknlMstpSrasWlnrDnon_1"

_injured DisableAI "move"

_injured SetDammage 0.8

removeAllWeapons _injured

_injured addAction ["ACTIONTEXT", "scriptname.sqs"]

the condition i want is>

i dont want the 'add action' visable untill a trigger sets T1=true

im not even sure if its posable.. plz help me..

Share this post


Link to post
Share on other sites

Is it SQS based?

Assuming it is called from somewhere else,

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

_injured addAction ["ACTIONTEXT", "scriptname.sqs"]

@ is shorthand for "wait Until" and will pause the script until the trigger sets T1 true.

See, you cannot enable or disable the visibility of the action. When you add it, it is visible. Therefore wait until the appropriate time to add it to the unit.

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  

×