Entity.GetUp
From GMod Wiki
Function | |
Syntax | Entity:GetUp( ) |
Description: | |
Returns the upward vector of the entity. | |
Returns: | Vector |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetUp]Entity.GetUp [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | When this Entity is used it will launch up, relative to the models rotation. |
---|---|
Used on | |
Code | function ENT:Use(activator, caller) local phys = self:GetPhysicsObject() if not IsValid(phys) then return end local up = self:GetUp() phys:SetVelocity(up*2000) end |
Output | N/A |