AbsorbDamage function

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

AbsorbDamage function

Postby Apeirogon » Fri Dec 08, 2017 11:43 am

What damage return
Code: Select allExpand view
AbsorbDamage (int damage, Name damageType, out int newdamage)
function?
I mean, it return damage that aplly directly to health or first to armor than to health? Try make indestructible armor for monster that depending of damage and damagetype or simply damage monster, or smeared it near closest wall or throw them. monster, into specific conditions.
Also, if it return negative damage, that damage will heal monster or there are take absolute value? And is there possibility use two armor at the same time (regular armor-power field)?
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests