BIS fnc createSimpleObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <dl class="command_description"> <!-- BEGIN Note Section --> <!-- END Note Section --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
||
Line 45: | Line 45: | ||
|[[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_replaceWithSimpleObject]], [[BIS_fnc_simpleObjectData]] | |[[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_replaceWithSimpleObject]], [[BIS_fnc_simpleObjectData]] | ||
}} | }} | ||
{{GameCategory|arma3| Functions}} | {{GameCategory|arma3| Functions}} | ||
[[Category:Functions|{{uc:createSimpleObject}}]] | [[Category:Functions|{{uc:createSimpleObject}}]] |
Revision as of 22:20, 31 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- input: String or Array:
- String: classname of the object to be created. This is the preferred way if the asset config definition contains the adjustment data or the data are not needed (most objects do not need adjustments).
- Array: adjustment data in format [class, model, reversed, verticalOffset, animationAdjustments, selectionsToHide]:
- class: String - (Optional, default "") asset CfgVehicles config class (at least either model or class must be provided, ideally both)
- model: String - (Optional, default "") Path to the vehicle p3d model; needs to start without backslash and must end with the proper file extension ".p3d"
- reversed: Number - (Optional, default 0) some objects, usually vehicles, are reveresed in p3d; valid values are:
- 0: no change
- 1: reverse
- -1: unknown (behaves as 0)
- verticalOffset: Array - (Optional, default 0) fix for non-existant physX; usually needed only for vehicles
- animationAdjustments: Array - (Optional, default []) Animation that need to be animated to given state, in format [animationName, animationState]:
- selectionsToHide: Array - (Optional, default []) all listed selections will be hidden
- position: PositionWorld
- direction: Number - (Optional, default 0)
- followTerrain: Boolean - (Optional, default true) true to follow terrain inclination, false to be horizontally aligned
- forceSuperSimpleObject: Boolean - (Optional, default false) true to create a Super Simple Object from p3d path (that must be provided)
- Return Value:
- Return value needed
Examples
- Example 1:
["B_Boat_Armed_01_minigun_F", getPosWorld player, getDir player] call BIS_fnc_createSimpleObject;
- Example 2:
["B_Boat_Armed_01_minigun_F", player modelToWorldWorld [0,5,0], getDir player + 90, false, false] call BIS_fnc_createSimpleObject;
Additional Information
- See also:
- See also needed
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