BIS fnc replaceWithSimpleObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | Arma 3 |= Game |1.62|= Game Version ____________________...")
m (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
 
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| Arma 3 |= Game
|game1= arma3
|version1= 1.62


|1.62|= Game Version
|gr1= Object Manipulation
____________________________________________________________________________________________


|Replaces object with simple object. Object must not contain any crew and must be placed on ground.<br><br>
|descr= Replaces a normal object with a [[Arma 3: Simple Objects|Simple Object]].
Object must not contain any crew and must be placed on the ground.
{{Feature|informative|
* Useful if you do not have access to simple object adjustment data - e.g. in case of unsupported/discontinued asset.
* All official assets have the adjustment data defined in config.}}


Remarks:<br>
|pr= Use with caution as this technique is not very clean - it should not be used for many objects and definitely '''not''' in MP games.
* Useful if you do not have access to simple object adjustment data - e.g. in case of unsupported/discontinued asset.<br>
* All official assets have the adjustment data defined in config.<br><br>


{{note|Use with caution as this technique is not very clean - should not be used for many objects and definatelly not in MP games.}}
|s1= [object] call [[BIS_fnc_replaceWithSimpleObject]]
|= Description
____________________________________________________________________________________________


| [object] [[call]] '''BIS_fnc_replaceWithSimpleObject''' |= Syntax
|p1= object: [[Object]] - the object that will be replaced by a simple object


|p1= [[Object]]: Object that will be replaced by simple object|= Parameter 1
|r1= [[Object]] - the created [[Arma 3: Simple Objects|Simple Object]]
____________________________________________________________________________________________


| [[Boolean]] - [[true]] if throwable |= Return value
|x1= <sqf>[tank] call BIS_fnc_replaceWithSimpleObject;</sqf>
 
____________________________________________________________________________________________
 
|x1= <code>[tank] [[call]] '''BIS_fnc_replaceWithSimpleObject''';</code>|= EXAMPLE1
 
____________________________________________________________________________________________
 
| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] |= See Also


|seealso= [[createSimpleObject]] [[BIS_fnc_adjustSimpleObject]] [[BIS_fnc_createSimpleObject]] [[BIS_fnc_simpleObjectData]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">'''[[User:User Name|User Name]]'''</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
[[Category:Arma 3: Functions|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:38, 6 May 2024

Hover & click on the images for description

Description

Description:
Replaces a normal object with a Simple Object. Object must not contain any crew and must be placed on the ground.
  • Useful if you do not have access to simple object adjustment data - e.g. in case of unsupported/discontinued asset.
  • All official assets have the adjustment data defined in config.
Execution:
call
Problems:
Use with caution as this technique is not very clean - it should not be used for many objects and definitely not in MP games.
Groups:
Object Manipulation

Syntax

Syntax:
[object] call BIS_fnc_replaceWithSimpleObject
Parameters:
object: Object - the object that will be replaced by a simple object
Return Value:
Object - the created Simple Object

Examples

Example 1:
[tank] call BIS_fnc_replaceWithSimpleObject;

Additional Information

See also:
createSimpleObject BIS_fnc_adjustSimpleObject BIS_fnc_createSimpleObject BIS_fnc_simpleObjectData

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