SlashCo Wiki

SlashCo.IsValidDoor

 boolean SlashCo.IsValidDoor( Entity ent )

Description

Checks whether the given entity is a valid SlashCo door, i.e. it is valid and its class is prop_door_rotating or func_door_rotating (see SlashCo.ValidDoors).

Arguments

1Entity ent

The entity to check.

Returns

1boolean isValid

true if the entity is a valid door.