Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
DealDamage
Syntax
C++
int DealDamage(IFunctionHandler * h, float staminaDmg, float healthDmg);

Syntax: soul:DealDamage(stamina, health, attackerId = invalid, suppressHitreaction = false, bodyPart = null) 

Causes the soul to loose given stamina and health. Negative values are accepted and treated as a heal. BodyParts are passed by name (from the database). 

 

Copyright (c) 2012. All rights reserved.