feat(Util/Vehicle): Request control of entity before repairing
This commit is contained in:
parent
0def0bba00
commit
5d788bd939
@ -33,6 +33,8 @@ namespace big::vehicle
|
||||
{
|
||||
if (!ENTITY::IS_ENTITY_A_VEHICLE(veh)) return false;
|
||||
|
||||
entity::take_control_of(veh);
|
||||
|
||||
VEHICLE::SET_VEHICLE_FIXED(veh);
|
||||
VEHICLE::SET_VEHICLE_DEFORMATION_FIXED(veh);
|
||||
VEHICLE::SET_VEHICLE_DIRT_LEVEL(veh, 0.f);
|
||||
|
Reference in New Issue
Block a user