Quote:
Originally Posted by Jerrythabest
You know what would be useful? A reverse-lookup for enums. Like
Code:
jjEnum(2, WEAPON::Weapon);
returns "ICE".
|
Doesn't seem to be a thing AngelScript supports, and presumably for good reason. Not all integers have exactly one enum value that represents them -- some have zero, some have two or more.
Quote:
Originally Posted by cooba
Sharing is caring
|
Would o.objType | 16 == 16 work there in place of the long list of eventIDs? Also IIRC you should specify the creator ID in jjAddObject as p.playerID, to ensure the right player gets points for destroying the enemy.
__________________
|