MooShalaby Posted May 20, 2023 Share Posted May 20, 2023 I have just added a ped to a specific location. I want the ped , when it move away from this location, to automatically return to it , how can i do this ? Link to comment
Lavi Posted May 20, 2023 Share Posted May 20, 2023 If I understood you well, I think that you might want to use setElementFrozen(ped, true) . Link to comment
Doongogar Posted May 21, 2023 Share Posted May 21, 2023 14 hours ago, MooShalaby said: I have just added a ped to a specific location. I want the ped , when it move away from this location, to automatically return to it , how can i do this ? you could create a marker, or a col shape and add the event onMarkerLeave or onColShapeLeave and set the position of the ped with setElementPosition to where it was Link to comment
FallenGod Posted August 4, 2023 Share Posted August 4, 2023 You Can Run Ped With https://wiki.multitheftauto.com/wiki/FindRotation Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now