BIS fnc replaceWithSimpleObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix category) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
* All official assets have the adjustment data defined in config. | * All official assets have the adjustment data defined in config. | ||
{{note|Use with caution as this technique is not very clean - should not be used for many objects and definitely not in MP games.}} |= | {{note|Use with caution as this technique is not very clean - should not be used for many objects and definitely not in MP games.}} |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [object] call [[BIS_fnc_replaceWithSimpleObject]] |= | | [object] call [[BIS_fnc_replaceWithSimpleObject]] |SYNTAX= | ||
|p1= object: [[Object]] - the object that will be replaced by a simple object |= | |p1= object: [[Object]] - the object that will be replaced by a simple object |PARAMETER1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Object]] |= | | [[Object]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[tank] [[call]] '''BIS_fnc_replaceWithSimpleObject''';</code>|= | |x1= <code>[tank] [[call]] '''BIS_fnc_replaceWithSimpleObject''';</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] |= | | [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:32, 7 April 2019
Description
- Description:
- Replaces object with simple object. Object must not contain any crew and must be placed on ground.
NOTE:- 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
- Groups:
- Uncategorised
Syntax
- Syntax:
- [object] call BIS_fnc_replaceWithSimpleObject
- Parameters:
- object: Object - the object that will be replaced by a simple object
- Return Value:
- Object
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