Page MenuHomeFeedback Tracker

cannot set position or orientation on local spawned vehicle entities
Closed, ResolvedPublic

Description

I have a Garage mod, which has a preview of the vehicles, which needs to spawn the vehicle locally for the player to preview it. The problem is, that the 1.26 update broke my preview. I cannot set the position of the object again after it was spawned at the location. Also it cannot be rotated anymore. When I use GetPosition or GetOrientation, it will return the correct position and orientation, but it's not updated ingame. Also I tried calling Update() on the vehicle, but still nothing. This has been fine in the 1.25 update. This apparently also only happens with vehicles. Other items are fine. I found a workaround for the problem, but it's not ideal. I spawn a dummy item first and then spawn the vehicle and add it as a Child with dummy.AddChild(vehicle, -1) and then set the position and orientation on the dummy item instead of the vehicle directly, which does the trick, but not really how it should work

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce
Object vehicle = g_Game.CreateObjectEx("Truck_01_Covered", GetSpawnPosition(), ECE_LOCAL, RF_NONE);
vehicle.SetOrientaion("140 0 0"); // Does not do anything on the Client
vehicle.SetPosition("1 2 3"); // Also does not change

Event Timeline

Geez changed the task status from New to Assigned.Oct 21 2024, 11:40 AM
Geez closed this task as Resolved.Nov 21 2024, 12:09 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Should be resolved with the latest patch.