BIS fnc replaceWithSimpleObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| Arma 3 |Game= | | Arma 3 |Game= | ||
|1.62 | |1.62 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| 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. | | 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. | ||
{{Informative| | {{Informative| | ||
* Useful if you do not have access to simple object adjustment data - e.g. in case of unsupported/discontinued asset. | * 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.}} | * All official assets have the adjustment data defined in config.}} | ||
|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. | |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. | ||
| [object] call [[BIS_fnc_replaceWithSimpleObject]] | | [object] call [[BIS_fnc_replaceWithSimpleObject]] | ||
|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 | ||
| [[Object]] - the created [[Arma 3 Simple Objects|Simple Object]] | | [[Object]] - the created [[Arma 3 Simple Objects|Simple Object]] | ||
|x1= <code>[tank] [[call]] '''BIS_fnc_replaceWithSimpleObject''';</code> | |x1= <code>[tank] [[call]] '''BIS_fnc_replaceWithSimpleObject''';</code> | ||
| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] | | [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] | ||
}} | }} | ||
Revision as of 23:40, 17 January 2021
Description
- Description:
- Replaces a normal object with a Simple Object. Object must not contain any crew and must be placed on the ground.
- 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:
- 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