HPL3/Amnesia: Rebirth/Scripting/cLuxAttackDamage

From Frictional Wiki
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

cLuxAttackDamage has no public fields.

Functions

Return Type Function And Description
void AddType(int alId, const tString &in asName)
iLuxEntity GetEntity()
int GetType()
int GetTypeInstanceID(int alId)
void SetDamage(int alId, float afMinDamage, float afMaxDamage, bool abLethalToPlayer)
void SetType_AddShapeAtSocket(const tString &in asSocketName, const cVector3f &in avOffset, float afRadius)
void SetType_AddShapeFromCenter(const cVector3f &in avOffset, float afRadius)
void SetType_Affects(bool abProps, bool abAgents, bool abPlayer)
void SetType_Damage(float afMinDamage, float afMaxDamage = -1, bool abLethalToPlayer = true)
void SetType_DamageType(int alX)
void SetType_Force(float afForce, float afMaxImpulse)
void SetType_HitSpeed(float afX)
void SetType_Strength(int alX)
void Start(int alId, float afDuration, float afDamageCheckFreq = 8.0f)
void Stop(int alId)
void StopAll()

Details

AddType

void AddType(int alId,
             const tString &in asName)


Parameters

  • alId (int) —
  • asName (tString) —

Returns:

  • void

GetEntity

iLuxEntity@ GetEntity()

Returns:

  • iLuxEntity@

GetType

int GetType()

Returns:

  • int

GetTypeInstanceID

int GetTypeInstanceID(int alId)


Parameters

  • alId (int) —

Returns:

  • int

SetDamage

void SetDamage(int alId,
               float afMinDamage,
               float afMaxDamage,
               bool abLethalToPlayer)


Parameters

  • alId (int) —
  • afMinDamage (float) —
  • afMaxDamage (float) —
  • abLethalToPlayer (bool) —

Returns:

  • void

SetType_AddShapeAtSocket

void SetType_AddShapeAtSocket(const tString &in asSocketName,
                              const cVector3f &in avOffset,
                              float afRadius)


Parameters

Returns:

  • void

SetType_AddShapeFromCenter

void SetType_AddShapeFromCenter(const cVector3f &in avOffset,
                                float afRadius)


Parameters

  • avOffset (cVector3f) —
  • afRadius (float) —

Returns:

  • void

SetType_Affects

void SetType_Affects(bool abProps,
                     bool abAgents,
                     bool abPlayer)


Parameters

  • abProps (bool) —
  • abAgents (bool) —
  • abPlayer (bool) —

Returns:

  • void

SetType_Damage

void SetType_Damage(float afMinDamage,
                    float afMaxDamage = -1,
                    bool abLethalToPlayer = true)


Parameters

  • afMinDamage (float) —
  • afMaxDamage (float) —
  • abLethalToPlayer (bool) —

Returns:

  • void

SetType_DamageType

void SetType_DamageType(int alX)


Parameters

  • alX (int) —

Returns:

  • void

SetType_Force

void SetType_Force(float afForce,
                   float afMaxImpulse)


Parameters

  • afForce (float) —
  • afMaxImpulse (float) —

Returns:

  • void

SetType_HitSpeed

void SetType_HitSpeed(float afX)


Parameters

  • afX (float) —

Returns:

  • void

SetType_Strength

void SetType_Strength(int alX)


Parameters

  • alX (int) —

Returns:

  • void

Start

void Start(int alId,
           float afDuration,
           float afDamageCheckFreq = 8.0f)


Parameters

  • alId (int) —
  • afDuration (float) —
  • afDamageCheckFreq (float) —

Returns:

  • void

Stop

void Stop(int alId)


Parameters

  • alId (int) —

Returns:

  • void

StopAll

void StopAll()

Returns:

  • void

References

See all references...