forceHitPointsDamageSync: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 16: | Line 16: | ||
|p1= entity: [[Object]] - entity | |p1= entity: [[Object]] - entity | ||
|r1= [[Boolean]] - true if sync was attempted | |r1= [[Boolean]] - [[true]] if sync was attempted | ||
|x1= <sqf>forceHitPointsDamageSync house1;</sqf> | |x1= <sqf>forceHitPointsDamageSync house1;</sqf> | ||
Revision as of 17:37, 27 December 2023
Description
- Description:
- Synchronizes 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). To sync static buildings, execute on the server.
- 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