OnDamageShields is awesome, however it took a while to find a small bug in a script i'm working on.
The problem is related to aDamageType.
aDamageType returns strings like "laser" and not a number like itmGetDamageType.
This can be a little confusing.
<OnDamageShields> easy, or not?
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
I agree... damage types should consistently be reported as integers.
It would however be awesome to have a built in function to translate that int to a string (with the normal capitalization and pluralization options)
It would however be awesome to have a built in function to translate that int to a string (with the normal capitalization and pluralization options)
