forceHitPointsDamageSync: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Fix example) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1=2.18 | |version1= 2.18 | ||
|arg= local | |arg= local | ||
Line 14: | Line 12: | ||
|descr= Synchronises hitpoints values and total damage across current network clients as well as JIP. | |descr= 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 {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} event handler (see {{Link|#Example 2}}). | Possible uses after executing script commands such as [[setHit]], [[setHitIndex]], [[setHitPointDamage]] or in conjunction with {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} event handler (see {{Link|#Example 2}}). | ||
|mp= Static buildings synchronisation must be executed on the [[isServer|server]]. | |||
|s1= [[forceHitPointsDamageSync]] entity | |s1= [[forceHitPointsDamageSync]] entity |
Revision as of 17:44, 8 October 2024
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 must be executed 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