allowDamage

From Bohemia Interactive Community
Revision as of 02:00, 30 January 2021 by Lou Montana (talk | contribs) (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
object: Object
allow: Boolean
Return Value:
Return value needed

Examples

Example 1:
player allowDamage false;

Additional Information

See also:
See also needed

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
Posted on September 2, 2013
AgentRev
_object allowDamage false; has the same effect as _object addEventHandler ["HandleDamage", {0}]; except for buildings that are native to the map; for those, the effects of HandleDamage will not sync properly across all clients, even if added to the building on every client and the server