LuaBridge:Methods:Object:SetPosition

From ArcEmu-Wiki
Jump to: navigation, search

Modifies the location vector of the object. This function should not be used for movement but as a way to force the location of the objet.

Usage:

local function OnCombat(this)
 local x,y,z,o = this:GetPosition();
 this:SetPosition(x,y,z,o) --We set the position to the same place we currently are so no actual movement happens.
end

Return to methods

Personal tools