BIS fnc createRuin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Page filling - missing see also)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Create a building ruin and hide the original object. |= Description
____________________________________________________________________________________________


Description:
| building call [[BIS_fnc_createRuin]] |= Syntax
Create a building ruin and hide the original object


Parameter(s):
|p1= building: [[Object]] - building to "destroy" |= Parameter 1
0: OBJECT


Returns:
| [[Object]] - the created ruin |= Return value
OBJECT - ruin
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_createRuin]]; --> |= Syntax
|x1= <code>aBuilding [[call]] [[BIS_fnc_createRuin]];</code> |= Example 1
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________


|x1= <code></code> |=  
|x2= <code> {{codecomment|// will destroy every house in a 50m radius around the player}}
{ _x [[call]] [[BIS_fnc_createRuin]]; } [[forEach]] ([[nearestObjects]] <nowiki>[</nowiki>[[player]], ["House"], 50]);</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |= See also
}}
}}



Revision as of 10:45, 21 April 2018


Hover & click on the images for description

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 house in a 50m radius around the player { _x call BIS_fnc_createRuin; } forEach (nearestObjects [player, ["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

Notes

Bottom Section