Page MenuHomeFeedback Tracker

setUnitFreefallHeight dosent broadcast
Closed, ResolvedPublic

Description

Seems like setUnitFreefallHeight doesen't broadcast. Using it on yourself other players still get the default variable 100 with getUnitFreefallInfo .

Details

Severity
Minor
Resolution
Not A Bug
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Player1 use player setUnitFreefallHeight 200;
  2. Player2 uses (getUnitFreefallInfo player1)

Event Timeline

Hungry created this task.Sep 17 2022, 1:34 PM
johnb43 added a subscriber: johnb43.EditedSep 24 2022, 9:06 AM

getUnitFreefallInfo takes a local argument, not a remote one, even though setUnitFreeFallInfo has a global effect.
If there is a bug, you have to check by switching locality on a unit (which can be only done with an AI) - like this:

  1. Spawn AI local to player1.
  2. Use setUnitFreefallHeight on AI.
  3. Switch AI's locality to player2's computer (with setOwner or setGroupOwner).
  4. Use getUnitFreefallInfo on AI now and see what it returns.

No it doesn't broadcast and by global effect this means that the unit will not get into free fall animation globally not that getUnitFreefall will return the same value globally. In fact the getUnitFreefall has local argument meaning executing it on remote machine is not going to work.

BIS_fnc_KK closed this task as Resolved.Sep 26 2022, 1:27 PM
BIS_fnc_KK changed Resolution from Open to Not A Bug.