Arma Reforger Script API
Loading...
Searching...
No Matches
AIDangerEventWeaponFire Interface Reference
Inheritance diagram for AIDangerEventWeaponFire:
AIDangerEvent AIMessage

Public Member Functions

proto external vector GetDirection ()
 Returns position and direction of the gunshot.
 
proto external bool IsSuppressed ()
 Returns true if suppressor was attached.
 
proto external IEntity GetInstigatorEntity ()
 Returns instigator entity - the entity which pulled the trigger.
 
proto external WorldTimestamp GetTimestamp ()
 Returns WorldTimestamp when the event was created.
 
proto external float GetInitialSpeed ()
 Returns initial speed of projectile.
 
- Public Member Functions inherited from AIDangerEvent
proto external IEntity GetVictim ()
 
proto external EAIDangerEventType GetDangerType ()
 
proto external void SetVictim (IEntity victim)
 
proto external void SetDangerType (EAIDangerEventType type)
 
- Public Member Functions inherited from AIMessage
proto external void SetFlag (int fl)
 
proto external void ClearFlag (int fl)
 
proto external bool GetFlag (int fl)
 
proto external void SetText (string pText)
 
proto external string GetText ()
 
proto external vector GetPosition ()
 
proto external void SetPosition (vector pos)
 
proto external AIAgent GetSender ()
 sender is filled when broadcasting
 
proto external void SetReceiver (AIAgent pReceiver)
 
proto external AIAgent GetReceiver ()
 
proto external IEntity GetObject ()
 
proto external void SetObject (IEntity obj)
 
void OnBroadcast (AIAgent pOwner)
 
void OnReceived (AIAgent pReceiver)
 

Member Function Documentation

◆ GetDirection()

proto external vector AIDangerEventWeaponFire.GetDirection ( )

Returns position and direction of the gunshot.

◆ GetInitialSpeed()

proto external float AIDangerEventWeaponFire.GetInitialSpeed ( )

Returns initial speed of projectile.

◆ GetInstigatorEntity()

proto external IEntity AIDangerEventWeaponFire.GetInstigatorEntity ( )

Returns instigator entity - the entity which pulled the trigger.

◆ GetTimestamp()

proto external WorldTimestamp AIDangerEventWeaponFire.GetTimestamp ( )

Returns WorldTimestamp when the event was created.

◆ IsSuppressed()

proto external bool AIDangerEventWeaponFire.IsSuppressed ( )

Returns true if suppressor was attached.


The documentation for this interface was generated from the following file: