Page 1 of 1
How to no random damage with SetActorProperty?
Posted: Mon Jan 27, 2014 3:59 am
by rico345
Code: Select all
//Damage Change
script 112 (int setDamage){
SetActorProperty(0,APROP_Damage,(setDamage));
}
This is the code. It works but one problem is the random number of damage.
What I want is just simple : Exactly adjusted damage what I did.
In Decorate, it's simply solved with like this : Damage (85).
How to same with ACS?
RE: How to no random damage with SetActorProperty?
Posted: Mon Jan 27, 2014 4:10 am
by Hypnotoad
RE: How to no random damage with SetActorProperty?
Posted: Mon Jan 27, 2014 12:18 pm
by ibm5155
setDamage=random(0,1000); ?
RE: How to no random damage with SetActorProperty?
Posted: Mon Jan 27, 2014 12:34 pm
by Klofkac
ibm5155 wrote:
setDamage=random(0,1000); ?
Subject wrote:How to no random damage with SetActorProperty?
RE: How to no random damage with SetActorProperty?
Posted: Sun Sep 21, 2014 12:03 pm
by Cruduxy
What are you using this code for?
Anyway Aprop_Damage represents missile damage so what you are changing is the base damage for missiles and the damage formula is still the wildely random projectile damage.
To be specific, ACS is not doing anything wrong. The Decorate actor applies the damage formula.
Maybe
http://zdoom.org/wiki/ACS_ExecuteWithResult with with a_explode with minimal radius can make it work.
RE: How to no random damage with SetActorProperty?
Posted: Sun Sep 21, 2014 12:16 pm
by Ivan
Here's a cool trick. You can do this in the Damage property in the decroate: Damage (BASEDAMAGE + ACS_ExecuteWithResult(###)). The result of that script will be added on top of the damage. So, for example, if a damage change should occur in a condition, you can have that script check for that condition.
RE: How to no random damage with SetActorProperty?
Posted: Sun Sep 21, 2014 3:56 pm
by Watermelon
ibm5155 wrote:
setDamage=random(0,1000); ?
Do you read the topics before posting?
