BIS fnc createRuin: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "(\| )+\}\}" to "}}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.76 | |||
| | |gr1= Environment | ||
| | |descr= Create a building ruin and hide the original object. | ||
| | |s1= building call [[BIS_fnc_createRuin]] | ||
|p1= building: [[Object]] - building to "destroy" | |p1= building: [[Object]] - building to "destroy" | ||
| [[Object]] - the created ruin | |r1= [[Object]] - the created ruin | ||
|x1= < | |x1= <sqf>aBuilding call BIS_fnc_createRuin;</sqf> | ||
|x2= < | |x2= <sqf> | ||
// will destroy every building in a 50m radius around the player | |||
private _nearBuildings = player nearObjects ["House", 50]; | |||
{ _x call BIS_fnc_createRuin } forEach _nearBuildings; | |||
</sqf> | |||
|seealso= [[setDamage]] | |||
}} | }} | ||
{{Note | |||
|user= Beno_83au | |||
|timestamp= 20190601131400 | |||
|text= In MP this function doesn't hide the building globally, so other clients will see both the original building ''AND'' the newly created ruined building - {{Link|https://feedback.bistudio.com/T140045}}. | |||
To get around this I've been hiding the object manually on all other clients: | |||
<sqf> | |||
_building call BIS_fnc_createRuin; | |||
[_building, true] remoteExecCall ["hideObject", -clientOwner]; | |||
</sqf> | |||
This will run [[hideObject]] on all other clients besides the client (or server) that this was executed from. | |||
}} | |||
In MP this function doesn't hide the building globally, so other clients will see both the original building ''AND'' the newly created ruined building - https://feedback.bistudio.com/T140045. To get around this I've been hiding the object manually on all other clients:< | |||
This will run | |||
Latest revision as of 16:21, 10 September 2023
Description
- Description:
- Create a building ruin and hide the original object.
- Execution:
- call
- Groups:
- Environment
Syntax
- Syntax:
- building call BIS_fnc_createRuin
- Parameters:
- building: Object - building to "destroy"
- Return Value:
- Object - the created ruin
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- setDamage
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 Jun 01, 2019 - 13:14 (UTC)
-
In MP this function doesn't hide the building globally, so other clients will see both the original building AND the newly created ruined building - [1].
To get around this I've been hiding the object manually on all other clients:
This will run hideObject on all other clients besides the client (or server) that this was executed from.