Sign in to follow this  
UDC

[Help] Is there any way to automate the player's movement?

Recommended Posts

Hey there, I was wondering if I can automate player's movement. In other words how to move a player to another position (without using setElementPosition). The player would walk till he reaches that position. ?

Share this post


Link to post

Anyone on this?

Share this post


Link to post

I've worked on it, it's a very difficult subject

In fact if you use setPedControlState, you'll have a lot of issue

Firstly, it'll depends on client's framerate because this function is client side also you might have sync issues

The best thing I could advise you is to freeze the player, then move him with setElementPosition every frame and during this process using setPedControlState to make him acts like if he was walking

Or you could synchronise the position of your bots with the server so they are synchronized

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.