Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPC entering vehicle #144

Closed
WoutProvost opened this issue Apr 4, 2018 · 2 comments
Closed

NPC entering vehicle #144

WoutProvost opened this issue Apr 4, 2018 · 2 comments

Comments

@WoutProvost
Copy link
Contributor

WoutProvost commented Apr 4, 2018

When an NPC goes to enter a vehicle and during the travelling to the vehicle the vehicle respawns or changes position, the NPC will teleport into the vehicle once he reaches the position the vehicle was at before.

I'd suggest either implementing something like FCNPC_GoToPlayer where the NPC constantly updates to where he's going, or immediately stop him moving once the position of the vehicle changes, or just don't teleport him to the vehicle once he reaches the position the vehicle was at before. The latter is probably the better option, since a small change in position shouldn't stop him from moving and we also probably don't want the NPC to move across the whole map when the vehicle's position is set somewhere far away from the NPC.

@BitFros7y
Copy link

Not 100% sure, but as far as i know, RPC handles enter/exits (so its not sync packets).
The way i see it is that you send RPC that you (any player or npc) are entering vehicle, and each client decides for himself if and how he is gonna render you entering vehicle. Since NPC's are players that have special flag i guess syncing position while entering is out of question.

@WoutProvost
Copy link
Contributor Author

That's not what I mean. I'm talking about this, which is different from this.

@ziggi ziggi closed this as completed in 9cba311 Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants