Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
BaseWeaponManagerComponent.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
15
16class BaseWeaponManagerComponent: GameComponent
17{
20
21 proto external IEntity GetOwner();
23 proto external void Throw(vector vDirection, float fSpeedScale);
24 proto external int GetDefaultWeaponIndex();
30 proto external GrenadeSlotComponent GetCurrentGrenadeSlot();
32 proto external int GetCurrentSightsIndex();
37 proto external bool SelectWeapon(BaseWeaponComponent weapon);
39 proto external IEntity SetSlotWeapon(WeaponSlotComponent pSlot, IEntity pWeaponEntity);
41 proto external bool HasAnotherSelectableWeapon();
43 proto external void SetVisibleAllWeapons(bool state);
44 proto external void SetVisibleCurrentWeapon(bool state);
50 proto external int GetWeaponsSlots(out notnull array<WeaponSlotComponent> outSlots);
56 proto external int GetWeapons(out notnull array<BaseWeaponComponent> outWeapons);
62 proto external int GetWeaponsList(out notnull array<IEntity> outWeapons);
64 proto external bool GetCurrentMuzzleTransform(vector outMatrix[4]);
66 proto bool GetCurrentSightsTransform(out vector outWorldMatrix[4], out vector outLocalMatrix[4], out float fov);
68 proto bool GetCurrentSightsCameraTransform(out vector outLocalMatrix[4], out float fov);
69
70 // callbacks
71
72 event protected void OnWeaponChangeComplete(BaseWeaponComponent newWeaponSlot) { m_OnWeaponChangeCompleteInvoker.Invoke(newWeaponSlot); };
73 event protected void OnWeaponChangeStarted(BaseWeaponComponent newWeaponSlot) { m_OnWeaponChangeStartedInvoker.Invoke(newWeaponSlot); };
74}
75
IEntity GetOwner()
Owner entity of the fuel tank.
proto external bool SelectWeapon(BaseWeaponComponent newWeapon)
Set weapon on character with switching animations. If true, the request was successful.
proto external int GetWeapons(out notnull array< BaseWeaponComponent > outWeapons)
BaseWeaponManagerComponentClass m_OnWeaponChangeCompleteInvoker
proto external int GetDefaultWeaponIndex()
proto external int GetWeaponsList(out notnull array< IEntity > outWeapons)
proto external bool HasAnotherSelectableWeapon()
Returns false if there's no weapon that this manager can select other than the one that's already sel...
proto external IEntity SetSlotWeapon(WeaponSlotComponent pSlot, IEntity pWeaponEntity)
Returns the old weapon entity of the specified weapon slot.
proto external BaseWeaponComponent GetCurrentGrenade()
ref ScriptInvoker< BaseWeaponComponent > m_OnWeaponChangeStartedInvoker
proto bool GetCurrentSightsTransform(out vector outWorldMatrix[4], out vector outLocalMatrix[4], out float fov)
Returns true if current weapon is valid and has some sights data, outputs sights transformation and f...
proto external int GetCurrentSightsIndex()
proto external bool GetCurrentMuzzleTransform(vector outMatrix[4])
Returns true if current weapon is valid and outputs current weapon's muzzle transformation to the giv...
proto external GrenadeSlotComponent GetCurrentGrenadeSlot()
proto external WeaponSlotComponent GetCurrentSlot()
proto external BaseWeaponComponent GetCurrentWeapon()
proto external void SetVisibleCurrentWeapon(bool state)
void OnWeaponChangeComplete(BaseWeaponComponent newWeaponSlot)
proto external BaseWeaponComponent GetCurrent()
Returns currently selected weapon or null if none. (This can either be a weapon component directly or...
proto external int GetWeaponsSlots(out notnull array< WeaponSlotComponent > outSlots)
void OnWeaponChangeStarted(BaseWeaponComponent newWeaponSlot)
proto external void Throw(vector vDirection, float fSpeedScale)
performs throwing
proto external void SetVisibleAllWeapons(bool state)
weapons visibility
proto bool GetCurrentSightsCameraTransform(out vector outLocalMatrix[4], out float fov)
Returns true if current weapon is valid and has some sights data, outputs local sights transformation...
proto external SightsComponent GetCurrentSights()
ScriptInvokerBase< func > ScriptInvoker
Definition tools.c:134