From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- This function will make weapon team pack a static weapon. The weapon crew will pack carried weapon (or given weapon if different) and follow leader. Requires three personnel in the team: Team Leader, Gunner and Asst. Gunner. This function is MP compatible
When the weapon is packed, scripted EH "StaticWeaponPacked" is called with the following params:
- [group, leader, gunner, assistant, weaponBag, tripodBag]
- Execution:
- call
- Groups:
- Weapons
Syntax
- Syntax:
- [group, weapon, leaderPos] call BIS_fnc_packStaticWeapon
- Parameters:
- group: Group or Object - the support team group or a unit from this group
- weapon: Object - (Optional) weapon to pack. If nil, current group weapon is packed
- leaderPos: Array, String or Object - (Optional) position, object or marker to which the group leader should move after the weapon is packed. By default the group will resume on to the next assigned waypoint. If this param is provided, group will not go to the next waypoint and will move to given position instead
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- BIS_fnc_unpackStaticWeapon BIS_fnc_addScriptedEventHandler
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
- Killzone_Kid - c
- Posted on Jan 06, 2017 - 23:23 (UTC)
-
The following script will create a group consisting of a Team Leader, Gunner and Asst. Gunner and give the group 2 random MOVE waypoints.
After the group reached the 1st waypoint, waypoint statement will execute BIS_fnc_unpackStaticWeapon and the group will stop and unpack static weapon, while leader is given random position to go to.
After 7 seconds the BIS_fnc_packStaticWeapon is executed and the group packs and heads to 2nd waypoint.