Forum Jump :

Author Message


Posts: 7
Rank:


Level: Member

Country: es
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2014-12-14 16:19        
     
Hola a todos:

Estaba buscando como ensamblar morteros desde los grupos de apoyo, he encontrado el ejemplo que copio abajo pero no funciona.
¿alguien lo ha probado? ¿Sabe como se debe de ejecutar para que funcione?

Saludos a todos


++++++++++++++++++++

Description:
Function which uses a weapon team to pack a static weapon such
as the HMG or Mortar. Requires three personnel in the team as
a minimum (leader, gunner, assistant).

Parameter(s):
_this select 0: the support team group (group)
_this select 1: location to place gun (position)
_this select 2: location of target (position)

---------- Post added at 01:47 ---------- Previous post was at 01:40 ----------

You need to set down an infantry support mortar team. Under the leader put mortarGrp = group this

For testing using a radio trigger put this in:
Code:

null = [mortarGrp, getMarkerPos "unpackMrk",getMarkerPos "targetmrk"] spawn BIS_fnc_unpackStaticWeapon

I used unpackMrk as my unpack location and obviously targetMrk was the target area.

Hope this helps.

For packing the weapon system using BIS_fnc_packStaticWeapon:
Description:
Function which uses a weapon team to pack a static weapon such
as the HMG or Mortar. Requires three personnel in the team as
a minimum (leader, gunner, assistant).

Parameter(s):
_this select 0: the support team group (group)
_this select 1: the weapon (option if weapon registered as "supportWeaponSetup" variable)

This post was edited by mjolnirthor (2014-12-15 19:23, 1042 days ago)


Author Message


Posts: 4
Rank:


Level: Member

Country: es
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2014-12-14 19:10        
     
Hola
1.Seleccionas un equipo de apoyos > morteros
2 En el init del lider del grupo de moteros pones, mortarGrp = group this
3 Colocas un marcador llamado "unpackMrk" en la posicion donde deseas que desplieguen el mortero
4 Colocas un marcador llamado "targetmrk" en la posicion en la que deseas que apunte el mortero.
5 Creas un radio trigger sin ejes
6 En el on act del trigger colocas el codigo:
null = [mortarGrp, getMarkerPos "unpackMrk",getMarkerPos "targetmrk"] spawn BIS_fnc_unpackStaticWeapon
7 Activas el trigger haciendo la llamada.

Saludos.

This post was edited by Rapax21 (2014-12-15 12:29, 1043 days ago)


Advertisement


Author Message


Posts: 7
Rank:


Level: Member

Country: es
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2014-12-15 09:28        
     
Muchas gracias.