Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int entity_get_personality_count(Entity entity)
- {
- int result = 0;
- for(int i = 0; i < Personality_Count; i++) {
- if(entity.personality_values[i] > 0) { result += 1; }
- }
- return result;
- }
- bool entity_has_personality(Entity entity, Personality personality)
- {
- return entity.personality_values[personality] > 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement