Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ENT:Use( activator, caller ) -- If a player uses this entity, play an animation
- if ( !self.Opened ) then -- If we are not "opened"
- self:ResetSequence( "open" ) -- Play the open sequence
- self.Opened = true -- We are now opened
- else
- self:ResetSequence( "close" ) -- Play the close sequence
- self.Opened = false -- We are now closed
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement