createSimpleObject: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
No edit summary |
||
Line 8: | Line 8: | ||
|p2= position: [[Position]] - Where the shape will be created |= Parameter 2 | |p2= position: [[Position]] - Where the shape will be created |= Parameter 2 | ||
| [[Object]] - Created object |= RETURNVALUE | | [[Object]] - Created object |= RETURNVALUE | ||
|x1= <code>decorativeTank = createSimpleObject ["\a3\armor_f_beta\apc_tracked_01\apc_tracked_01_rcws_f.p3d", position player]; | |x1= <code>decorativeTank = createSimpleObject ["\a3\armor_f_beta\apc_tracked_01\apc_tracked_01_rcws_f.p3d", position player];</code>|= EXAMPLE1 | ||
</code>|= EXAMPLE1 | |||
| [[hideSelection]], [[selectionPosition]], [[getModelInfo]], [[getObjectType]], [[cursorObject]], [[selectionNames]], [[animationNames]], [[createVehicle]], [[enableSimulation]], [[hideObject]] |= SEEALSO | | [[hideSelection]], [[selectionPosition]], [[getModelInfo]], [[getObjectType]], [[cursorObject]], [[selectionNames]], [[animationNames]], [[createVehicle]], [[enableSimulation]], [[hideObject]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 20:57, 15 April 2016
Description
- Description:
- Creates object with given shape. The given object will not be simulated (no PhysX, sound nor an interesting target for AI) allowing the placement of decorative objects with a very little network traffic.
Some of the model examples could be found here: createSimpleObject/objects - Groups:
- Uncategorised
Syntax
- Syntax:
- createSimpleObject [shapeName, position];
- Parameters:
- shapeName: String - Path to the 3d model
- position: Position - Where the shape will be created
- Return Value:
- Object - Created object
Examples
- Example 1:
decorativeTank = createSimpleObject ["\a3\armor_f_beta\apc_tracked_01\apc_tracked_01_rcws_f.p3d", position player];
Additional Information
- See also:
- hideSelectionselectionPositiongetModelInfogetObjectTypecursorObjectselectionNamesanimationNamescreateVehicleenableSimulationhideObject
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