allowDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
Line 13: Line 13:
| Allow or prevent an object being damaged (or injured, or killed). Alias of [[allowDamage]].<br>
| Allow or prevent an object being damaged (or injured, or killed). Alias of [[allowDamage]].<br>
The command does not prevent object from taking scripted damage such as [[setDamage]] or [[setHit]].<br>
The command does not prevent object from taking scripted damage such as [[setDamage]] or [[setHit]].<br>
{{Important | Command has to be executed where object is [[local]] and as long as object does not change locality the effect of this command will be global.
{{Feature | important | Command has to be executed where object is [[local]] and as long as object does not change locality the effect of this command will be global.
If object changes locality, the command needs to be executed again on the new [[owner]]'s machine to maintain the effect.}}
If object changes locality, the command needs to be executed again on the new [[owner]]'s machine to maintain the effect.}}



Revision as of 03:08, 7 February 2021

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 allowDammage 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