OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
make da trig
repeatable
nybody present
condition : this
on activision : "_X setdammage (getammage _X +0.1)" foreach thislist
shud work
LCD OUT
-
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 ::)
-
he said
setdammage them to .1
not add ::)
LCD OUT
-
hmmm ..... true, but
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)