mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-03-05 07:37:17 +00:00
assign offset every frame
This commit is contained in:
parent
62d6925020
commit
a5cda1b996
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
// }
|
||||
// else
|
||||
{
|
||||
// we have to assign offset every frame, because it can be changed when ped model changes
|
||||
m_model.VehicleParentOffset = m_vehicleParentOffset;
|
||||
|
||||
m_model.PlayAnim(AnimGroup.Car, AnimIndex.SitPassenger, PlayMode.StopAll);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue