BIS fnc replaceWithSimpleObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>") |
||
Line 20: | Line 20: | ||
|r1= [[Object]] - the created [[Arma 3 Simple Objects|Simple Object]] | |r1= [[Object]] - the created [[Arma 3 Simple Objects|Simple Object]] | ||
|x1= < | |x1= <sqf>[tank] call BIS_fnc_replaceWithSimpleObject;</sqf> | ||
|seealso= [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] | |seealso= [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]], [[BIS_fnc_simpleObjectData]] | ||
}} | }} |
Revision as of 13:04, 5 May 2022
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:
- 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