object.is_of_type
This function checks whether the context object is of a given type.
Arguments
- type
A type of object that can exist in the game world.
Example
-- -- Do not allow Elites to pick up Assault Rifles. -- for each player do if current_player.biped.is_of_type(elite) then for each object do if current_object.is_of_type(assault_rifle) then current_object.set_pickup_permissions(mod_player, current_player, 0) end end end end
Notes
Holograms do not test as being of type spartan or elite.