You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: