but i have a problem to set it
Code: Select all
local Entity = AshitaCore:GetDataManager():GetEntity();
local party = AshitaCore:GetDataManager():GetParty();
pH = Entity:GetHeading(party:GetPartyMemberTargetIndex(0));
if (pH > 0) then
new_pH = pH - math.pi;
else
new_pH = pH + math.pi;
end
Entity:SetHeading(party:GetPartyMemberTargetIndex(0), new_pH)
but unfortunately character is not turning
i tried in different views