BIS fnc createRuin: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 13: | Line 13: | ||
| building call [[BIS_fnc_createRuin]] |SYNTAX= | | building call [[BIS_fnc_createRuin]] |SYNTAX= | ||
|p1= building: [[Object]] - building to "destroy" |= | |p1= building: [[Object]] - building to "destroy" |PARAMETER1= | ||
| [[Object]] - the created ruin |RETURNVALUE= | | [[Object]] - the created ruin |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>aBuilding [[call]] [[BIS_fnc_createRuin]];</code> |= | |x1= <code>aBuilding [[call]] [[BIS_fnc_createRuin]];</code> |EXAMPLE1= | ||
|x2= <code> {{codecomment|// will destroy every building in a 50m radius around the player}} | |x2= <code> {{codecomment|// will destroy every building in a 50m radius around the player}} | ||
{ _x [[call]] [[BIS_fnc_createRuin]]; } [[forEach]] ([[player]] [[nearObjects]] ["House", 50]);</code> |= | { _x [[call]] [[BIS_fnc_createRuin]]; } [[forEach]] ([[player]] [[nearObjects]] ["House", 50]);</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:28, 7 April 2019
Description
- Description:
- Create a building ruin and hide the original object.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- building call BIS_fnc_createRuin
- Parameters:
- building: Object - building to "destroy"
- Return Value:
- Object - the created ruin
Examples
- Example 1:
aBuilding call BIS_fnc_createRuin;
- Example 2:
// will destroy every building in a 50m radius around the player { _x call BIS_fnc_createRuin; } forEach (player nearObjects ["House", 50]);
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