objectParent: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example) |
(Version changed) |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | arma3|= Game name | ||
|1. | |1.50|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 15:19, 26 August 2015
Description
- Description:
- Returns parent of an object if the object is proxy, otherwise objNull. In case of backpack, the parent is a weaponholder or a cargo space of a vehicle or the unit carrying it. Unit in a vehicle will return the vehicle as parent.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_weaponholder = objectParent _mybackpack;
- Example 2:
- Create and place created backpack in front of player:
_backpackContainer = "B_TacticalPack_rgr" createVehicle [0,0,0]; _weaponHolder = objectParent _backpackContainer; _weaponHolder setPos (player modelToWorld [0,5,0]);
Additional Information
- See also:
- backpackContainerunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpack
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