[Vanilla Bug] Centering Camera on Waypoint or Team does not un-follow camera-followed unit #1050
Open
3 tasks done
Labels
vanilla-bug
Something isn't working in the original game
First Check
Description
You can tell the camera to follow a selected unit by pressing the "Follow" keyboard command (IIRC the default is F).
Missions often use the "Center Camera on Waypoint" trigger action (action #48) to center the camera on a waypoint. This works properly otherwise, but if the camera is following a unit, these mechanisms clash in a bad way, with the camera moving to the waypoint, and then instantly teleporting back to the unit.
Required Code (optional)
No response
Steps To Reproduce
Create a map that has
Start the map, tell the unit to move somewhere and press F to have the camera follow the unit.
Expected Behaviour
When the trigger is executed, the camera should move to the specified waypoint and stay there.
Actual Behaviour
When the trigger is executed, the camera moves to the specified waypoint and then instantly jumps back to the followed unit.
Additional Context
The function at
0x0060F800
is used for making the camera smoothly move to a specific location. It is used by trigger action no. 48 as well as the "Center On Team" team script action. The function should at some point make aMap.Follow_This(nullptr);
call to clear the camera's unit following status.For example, the following code seems to fix this:
The text was updated successfully, but these errors were encountered: