forceHitPointsDamageSync
Jump to navigation
Jump to search
Description
- Description:
- Synchronises hitpoints values and total damage across current network clients as well as JIP. Possible uses after executing script commands such as setHit, setHitIndex, setHitPointDamage or in conjunction with HandleDamage event handler (see Example 2).
- Multiplayer:
- Static buildings synchronisation should be executed on the server as the server is the authority in building damage and you would want every client in MP to have the same level of damage as the server has.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- forceHitPointsDamageSync entity
- Parameters:
- entity: Object - entity
- Return Value:
- Boolean - true if sync was attempted
Examples
- Example 1:
- forceHitPointsDamageSync house1;
- Example 2:
Additional Information
- See also:
- getHit getHitPointDamage setHitPointDamage damage setDamage setFuel setAmmo getHitIndex setHitIndex
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note