Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. function cider.entity.isDoor(entity)
  2.     local class = entity:GetClass();
  3.    
  4.     -- Check if the entity is a valid door class.
  5.     if (class == "func_door" or class == "func_door_rotating" or class == "prop_door_rotating" or class == "prop_vehicle_prisoner_pod" or class == "prop_vehicle_jeep") then
  6.         return true;
  7.     else
  8.         return false;
  9.     end;
  10. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement