BIS fnc replaceWithSimpleObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3 " to "[[Arma 3: ") |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= Replaces a normal object with a [[Arma 3 Simple Objects|Simple Object]]. | |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. | Object must not contain any crew and must be placed on the ground. | ||
{{Feature| | {{Feature|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.}} | ||
Line 18: | Line 18: | ||
|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 | ||
|r1= [[Object]] - the created [[Arma 3 Simple Objects|Simple Object]] | |r1= [[Object]] - the created [[Arma 3: Simple Objects|Simple Object]] | ||
|x1= <sqf>[tank] call BIS_fnc_replaceWithSimpleObject;</sqf> | |x1= <sqf>[tank] call BIS_fnc_replaceWithSimpleObject;</sqf> |
Latest revision as of 10:38, 6 May 2024
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:
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