Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
redarmy

set damage will not work

Recommended Posts

Can someone tell me why this relatively code placed in the on activation of a trigger will not work?

 

On Act.: {_x Setdammage 0} Foreach thislist;

 

Iv tried multiple conditions for it to fir including a radio trigger but nothing...The hint plays showing the trigger fired but there is no effect.My health remains at X instead of fully healed

Share this post


Link to post
Share on other sites

no list is generated when using a radio trigger, you will need two triggers one set up using the anyone,present,repeating settings ect and another for the radio trigger and name that trigger myradio

 

then in the second trigger the one doing the list

 

Cond   :  this && triggeractivated myradio

On Act.: {_x Setdammage 0} Foreach thislist;

Share this post


Link to post
Share on other sites

no list is generated when using a radio trigger, you will need two triggers one set up using the anyone,present,repeating settings ect and another for the radio trigger and name that trigger myradio

 

then in the second trigger the one doing the list

 

Cond   :  this && triggeractivated myradio

On Act.: {_x Setdammage 0} Foreach thislist;

Your a gentleman

 

Been months since i did this and totaly forgot how.

Just tested there its working perfect.

 

Cheers mate

Share this post


Link to post
Share on other sites

One small issue im unable to get this to repeat,iv set triggers to repeat.

 

Is there a way?im rusty at this

Share this post


Link to post
Share on other sites

I'm not really following, the trigger should repeat but it will only do so every time you use the radio as long as both are set to repeat.

 

If you only want to use the radio once but have the second trigger fire for any unit entering it from then on you will need to replace the condition and use a variable

 

myradio trigger

On Act :  myvar=true;

 

second trigger

Cond   :  this &&  myvar

On Act.: {_x Setdammage 0} Foreach thislist;

Share this post


Link to post
Share on other sites

I'm not really following, the trigger should repeat but it will only do so every time you use the radio as long as both are set to repeat.

 

If you only want to use the radio once but have the second trigger fire for any unit entering it from then on you will need to replace the condition and use a variable

 

myradio trigger

On Act :  myvar=true;

 

second trigger

Cond   :  this &&  myvar

On Act.: {_x Setdammage 0} Foreach thislist;

Both triggers are set to repeat.

 

When i hit radio alpha for a second time,it doesnt fire,im not even getting the hint for it

Share this post


Link to post
Share on other sites

I don't know why that should be, is the hint in the radio trigger?

 

If it's in the second it will only fire again if a new unit has entered the trigger and the radio is activated or myvar is set to true depending on which your using.

 

I'm not at my pc toady so I can't really test anything.

Share this post


Link to post
Share on other sites

I don't know why that should be, is the hint in the radio trigger?

 

If it's in the second it will only fire again if a new unit has entered the trigger and the radio is activated or myvar is set to true depending on which your using.

 

I'm not at my pc toady so I can't really test anything.

Think i understand now.

 

I forgot to mention the trigger covers the whole map,so no "re-entry"

 

Im trying to acheive a way to heal all friendly AI units in my scenario between firefights so that the injured ones dont lag behind when wounded and trying to follow new given waypoints :(

 

I think i can do this easier rite? by changing ON ACT to all side opfor/blufor instead of "inthislist" ? Its foreach units east/west if im not mistaken

Share this post


Link to post
Share on other sites
Guest HellGhost

Hi,

 

If I correctly understand, you want to heal the entities using a radio channel, right ?

 

So, why do you use Triggers to execute the command when you can do it easier by a script launched by the radio channel ?

Share this post


Link to post
Share on other sites

Hi,

 

If I correctly understand, you want to heal the entities using a radio channel, right ?

 

So, why do you use Triggers to execute the command when you can do it easier by a script launched by the radio channel ?

Yeah sorry lads i was over complicating things iv activated it with a simple trigger to repeat for all units of specific side.

 

The issue is the AI in this game dont always get the command to heal up,so they move like snails rest of mission.Setting their damage to 0 is cheap but its the only way i can depend on AI to participate in their own game after engagements

Share this post


Link to post
Share on other sites
Guest HellGhost

Yeah sorry lads i was over complicating things iv activated it with a simple trigger to repeat for all units of specific side.

 

The issue is the AI in this game dont always get the command to heal up,so they move like snails rest of mission.Setting their damage to 0 is cheap but its the only way i can depend on AI to participate in their own game after engagements

 

I understand.

 

We all have our own method, there's no problem with that.

Finally, I still use Triggers for the differents scripts for each side because using the side specification in a script never work. But only to the side specification, I execute a script in the activation field.

 

If you don't want to use a script, do you already try to set the Trigger to Repetition, using the radio channel to heal each entities after named them ?

That should be a good way to verify if the idea and the function works.

 

After that, when you see that you idea is possible and working, you can watch to simplify it.

 

And the "setDamage" command is the better way to do it and absolutly not cheap  ;)

 

 

To my knowledge, setDammage doesn't do anything in ArmA 3 since this is a depricated (and incorrectly spelled) command.

 

Use setDamage instead.

 

I'm agreed with that, you should try "setDamage" instead of "setDammage".

Share this post


Link to post
Share on other sites
Sign in to follow this  

×