Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BaseProjectileEffect Interface Reference
Inheritance diagram for BaseProjectileEffect:
[legend]

Public Member Functions

proto external bool HasFinished ()
 Ask if the effect has finished or not.
 
proto external void SetHasFinished (bool value)
 Set if the effect is finished or not.
 
proto external bool IsEnabled ()
 Ask if the effect is enabled or not.
 
proto external void SetIsEnabled (bool value)
 Set if the effect is finished or not.
 
void OnInit (IEntity owner)
 Called during EOnInit.
 
void OnEffect (IEntity pHitEntity, inout vector outMat[3], IEntity damageSource, notnull Instigator instigator, string colliderName, float speed)
 Called when the effect is being applied.
 
void OnFrame (IEntity owner, float timeSlice)
 Called during EOnFrame.
 
bool ShouldTick ()
 OnFrame function should be called.
 

Member Function Documentation

◆ HasFinished()

proto external bool BaseProjectileEffect.HasFinished ( )

Ask if the effect has finished or not.

Returns
Returns true when a TICKABLE projectile effect has ended

◆ IsEnabled()

proto external bool BaseProjectileEffect.IsEnabled ( )

Ask if the effect is enabled or not.

◆ OnEffect()

void BaseProjectileEffect.OnEffect ( IEntity  pHitEntity,
inout vector  outMat[3],
IEntity  damageSource,
notnull Instigator  instigator,
string  colliderName,
float  speed 
)

Called when the effect is being applied.

Parameters
pHitEntityDamaged entity
outMatHit position/direction/normal
damageSourceProjectile
InstigatorInstigator of the damage
colliderNameCollider name if exist otherwise empty
speedProjectile velocity in m/s

◆ OnFrame()

void BaseProjectileEffect.OnFrame ( IEntity  owner,
float  timeSlice 
)

Called during EOnFrame.

Parameters
ownerEntity this component is attached to.
timeSliceDelta time since last update.

◆ OnInit()

void BaseProjectileEffect.OnInit ( IEntity  owner)

Called during EOnInit.

Parameters
ownerEntity this component is attached to.

◆ SetHasFinished()

proto external void BaseProjectileEffect.SetHasFinished ( bool  value)

Set if the effect is finished or not.

◆ SetIsEnabled()

proto external void BaseProjectileEffect.SetIsEnabled ( bool  value)

Set if the effect is finished or not.

◆ ShouldTick()

bool BaseProjectileEffect.ShouldTick ( )

OnFrame function should be called.

Returns
Returns true if OnFrame function should be called.

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