Guest User

Untitled

a guest
Jul 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. function ENT:Initialize()
  2.     self.Entity:SetModel("models/props_lab/clipboard.mdl")
  3.     self.Entity:PhysicsInit(SOLID_VPHYSICS)
  4.     self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
  5.     self.Entity:SetSolid(SOLID_VPHYSICS)
  6.     self:SetUseType(SIMPLE_USE)
  7.    
  8.     local phys = self.Entity:GetPhysicsObject()
  9.     self.nodupe = true
  10.     self.ShareGravgun = true
  11.  
  12.     if phys and phys:IsValid() then phys:Wake() end
  13.     self:SetCollisionGroup(COLLISION_GROUP_INTERACTIVE_DEBRIS)
  14. end
Add Comment
Please, Sign In to add comment