Check\get value of custom DamageFactor?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Check\get value of custom DamageFactor?

Postby Void Weaver » Mon Aug 26, 2019 7:25 pm

Lets say that a some actor with DamageFactor "Ice", X uses a some item that check user's value of his DamageFactor to "Ice" and if it returns 0 then item use fails, otherwise this item do something.
Is it possible to perform the such check?

I've already know about APROP_DamageFactor, but unfortunately this property responds only for generic DamageFactor aka "Normal".
User avatar
Void Weaver
Keeper of the Diablo bestiary storage Also amateur DECORATE-spaghetti weaver ಠ_ಠ
 
Joined: 18 Dec 2014

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests