isType( entityType )

instance function

The Entity:isType function is used to see if an Entity is of a specific type. You should use this function before using functions of a specific Entity-derived class, to make sure that is of the correct type.

Arguments

Name Type Description
type Entity.Type An entity type; the function will query the Entity to see if it is of this type 

Returns

Type Description
Boolean If the Entity is of the correct type, true; else false