BIS fnc replaceWithSimpleObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | Arma 3 |= Game |1.62|= Game Version ____________________...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| Arma 3 |= Game


|1.00|= Game version
|1.62|= Game Version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
|Replaces object with simple object. Object must not contain any crew and must be placed on ground.<br><br>
Author: Jiri Wainar


Description:
Remarks:<br>
Replaces object with simple object. Object must not contain any crew and must be placed on ground.
* 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>


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


Parameter(s):
| [object] [[call]] '''BIS_fnc_replaceWithSimpleObject''' |= Syntax
0: OBJECT - object that will be replaced by simple object
1: BOOL - force super-simple object (default: false); true: super-simple object will be force, no type info or re-texturing is available, false: super-simple object is used unless re-texturing is possible


Returns:
|p1= [[Object]]: Object that will be replaced by simple object|= Parameter 1
OBJECT - simple object that replaced the simulated object
____________________________________________________________________________________________


Example:
| [[Boolean]] - [[true]] if throwable |= Return value
[_object:object] call BIS_fnc_replaceWithSimpleObject;


See also:
* bis_fnc_createSimpleObject
* bis_fnc_replaceWithSimpleObject
* bis_fnc_simpleObjectData
* bis_fnc_exportCfgVehiclesSimpleObjectData
* bis_fnc_diagMacrosSimpleObjectData
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_replaceWithSimpleObject]]; --> |= Syntax
|x1= <code>[tank] [[call]] '''BIS_fnc_replaceWithSimpleObject''';</code>|= EXAMPLE1
|p1= |= Parameter 1


| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=
| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] |= See Also
____________________________________________________________________________________________
 
| |= See also


}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- BEGIN Note Section -->
 
<!-- For example:
<!-- Note Section END -->
<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>
</dl>


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: SimpleObjects|{{uc:replaceWithSimpleObject}}]]
<!-- Appropriate categories go here -->
[[Category:Functions|{{uc:replaceWithSimpleObject}}]]
[[Category:Arma 3: Functions|{{uc:{{PAGENAME}}}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:replaceWithSimpleObject}}]]

Revision as of 15:41, 14 September 2016

Hover & click on the images for description

Description

Description:
Replaces object with simple object. Object must not contain any crew and must be placed on ground.

Remarks:
  • 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.

Template:note
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[object] call BIS_fnc_replaceWithSimpleObject
Parameters:
Object: Object that will be replaced by simple object
Return Value:
Boolean - true if throwable

Examples

Example 1:
[tank] call BIS_fnc_replaceWithSimpleObject;

Additional Information

See also:
createSimpleObjectBIS_fnc_adjustSimpleObjectBIS_fnc_createSimpleObjectBIS_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

Bottom Section