Advertisement
Guest User

Kackspaten

a guest
Jan 25th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function ENT:Initialize()
  2.  
  3. self:SetModel( "models/props_wasteland/controlroom_storagecloset001a.mdl" )
  4. self:SetMaterial("models/props_wasteland/rockcliff04a")
  5. self:PhysicsInit( SOLID_VPHYSICS ) -- Make us work with physics,
  6. self:SetMoveType( MOVETYPE_VPHYSICS ) -- after all, gmod is a physics
  7. self:SetSolid( SOLID_VPHYSICS ) -- Toolbox
  8. self:SetTrigger()
  9. self.Delay = CurTime()
  10.  
  11. local phys = self:GetPhysicsObject()
  12. if (phys:IsValid()) then
  13. phys:Wake()
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement