feat(PersistCar): collision, invincibility & visibility on vehicle (#602)

This commit is contained in:
8KV 2022-11-16 21:31:12 +02:00 committed by GitHub
parent 71aa3e5577
commit 9877164591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,8 +127,11 @@ namespace big
attachment.rotation.x, attachment.rotation.y, attachment.rotation.z,
false, false, false, false, 0, true, 0);
VEHICLE::SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(vehicle_to_attach, false);
ENTITY::SET_ENTITY_VISIBLE(vehicle_to_attach, attachment.is_visible, 0);
ENTITY::SET_ENTITY_COLLISION(vehicle_to_attach, attachment.has_collision, true);
ENTITY::SET_ENTITY_INVINCIBLE(vehicle_to_attach, attachment.is_invincible);
VEHICLE::SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(vehicle_to_attach, true);
}
return vehicle;