ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
131 stars 30 forks source link

Trailer detaches #234

Open NegativeIQ opened 3 years ago

NegativeIQ commented 3 years ago

I just tried recording NPC driving truck with trailer, and when i try to play it, trailer always gets detached as soon as NPC moves (actually recording starts). Note im using FCNPC_StartPlayingPlayback, and i also tried attaching trailer before, and after playback, and even delaying playback start after attaching trailer.

Ok, after some research into issue, here are my two cents. First, recording and playback is done by samp server (or should i say samp-npc). Since NPC's are just players, and recordings are literally sync packets saved into a file my guess is that trailer id has to be same as when recorded.

That thing to side, FCNPC does not support trailer sync at all (i have not seen it in code besides inside vehicle sync packet but thats it, its not set anywhere and its not read anywhere as far as i can tell).