OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 05 Jun 2003, 21:17:50

Title: setting dammage to any soldier
Post by: gadolinite on 05 Jun 2003, 21:17:50
when soldiers or a person of any kind enters a trigger area, how do you use a loop to setdammage them to .1 at a time everytime the loop incriments?

Some of these soldiers are named, where most are not.
Title: Re:setting dammage to any soldier
Post by: LCD on 05 Jun 2003, 23:42:03
make da trig


repeatable
nybody present
condition : this
on activision : "_X setdammage (getammage _X +0.1)" foreach thislist

shud work

LCD OUT
Title: Re:setting dammage to any soldier
Post by: macguba on 06 Jun 2003, 00:33:45
Unfortunately LCD, normally a paragon of good answering, misread your question.   ;D

Make a trigger:-

Activation box:    anybody present    Repeatable
Condition:   this and var1
On activation:    "_x setdammage (getdammage _x + 0.1)" foreach thislist

Use a looping script to switch the var1 from true to false as you like.  

Syntax, and indeed the whole result, not guaranteed but its worth a try.


mac 2 : LCD 2  ::)
Title: Re:setting dammage to any soldier
Post by: LCD on 06 Jun 2003, 00:57:12
he said

Quote
setdammage them to .1

not add ::)

LCD OUT
Title: Re:setting dammage to any soldier
Post by: macguba on 06 Jun 2003, 09:41:13
hmmm ..... true, but

Quote
setdammage them to .1 at a time everytime

I think we'll have to wait and see what he says ... ok gadolinite me ol' china, who answered your question better?  :P   (Don't worry, you won't offend anyone.  ;D)