Hi. Can anyone please assist with TASK_TURN_PED_TO_FACE_ENTITY or face COORD or something i might have missed. Idea is to get the spawned ped to face the same direction as Player.
[c#] Spawned Ped face same direction as Player when isStopped
Posted 22 August 2017 - 10:46 PM Edited by LeeC2202, 22 August 2017 - 10:49 PM.
Have you tried setting the Rotation value of the Ped, to the same as the player?
SpawnedPed.Rotation = Game.Player.Character.Rotation;
Posted 24 August 2017 - 06:30 AM
Thank you Lee. "Looks" like i wasnt aware of the ".Rotation". It does do exactly that. But the Ped rotation transition is not impressive. So i opted for TASK_FOLLOW_TO_OFFSET_OF_ENTITY. atleast this way the Ped is closer and mostly faces the same direction as Player.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users