Jump to content
Sign in to follow this  
febriannas

what is the right way to type THIS CONDITION

Recommended Posts

http://s27.postimg.org/m4ihxiz8z/tanya4.png (170 kB)

from the picture above, i have difficulties to make the trigger work

for ACTIVATION: any group member

CONDITION : iwant it to do the, damage this > 0.6

ACTIVATION : { _x setunitpos "down" } foreach thislist

BUTT.. its not working, so how to make it work and where i did it wrong?

Share this post


Link to post
Share on other sites

Condition:

{damage _x > 0.6} count (units myGrp) > 0

Activation:

{_x setunitpos "down" } foreach thislist

Share this post


Link to post
Share on other sites

hi again iceman, yeah just making a little tweak to trim down the trigger in my mission,

i already done it for each unit lol

but want to make it more efficient,

its still NOT working

maybe is there any form of the condition can be done?

maybe without the group thing? how about the syncing it? or?

---------- Post added at 20:36 ---------- Previous post was at 20:03 ----------

{damage _x > 0.6} count (units myGrp) > 0

its not working

maybe an eventhandler or damage handler to work around?

Share this post


Link to post
Share on other sites
. . . {damage _x > 0.6} count (units myGrp) > 0

its not working . . .

Then your type and/or activation is wrong. Or your group isn't named properly and isn't throwing an undefined (myGrp) error because you don't have -showScriptErrors as a startup parameter.

---------- Post added at 12:53 ---------- Previous post was at 12:50 ----------

It works fine for me.

Type: None

Activation: None

Condition: {damage _x > 0.6} count (units myGrp) > 0

Activation: hint "hello";

Share this post


Link to post
Share on other sites

setUnitPos "Down" could be the problem, AI can ignore it, it happens.

Put

{ systemchat str _x } foreach thislist

insead of

{ _x setunitpos "down" } foreach thislist

to see if the trigger activates first

Share this post


Link to post
Share on other sites

so the "myGrp"

what is that stand for? if my unit squad leader name is x9

is that stand for the squad leader of the group name or what?

Share this post


Link to post
Share on other sites

Yes if your squad leader's name is x9, replace myGrp with x9.

Share this post


Link to post
Share on other sites
so the "myGrp"

what is that stand for? if my unit squad leader name is x9

is that stand for the squad leader of the group name or what?

myGrp is the name of a group. Replace myGrp with whatever your group's name is. To form a group deemed x9 then...

Leader's Init (for grouping)

x9 = group this

Edited by Iceman77

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  

×