Endstar LUA API Documentation
Loading...
Searching...
No Matches
Hostility Class Reference

Used to modify the hostility behavior of a hittable prop. More...

Public Member Functions

void SetHostilityLossRate (Context instigator, float value)
 Set the rate at which a targeter loses hostility per second.
 
void SetHostilityDamageAddend (Context instigator, float value)
 Set the amount of hostility a targeter gains when damaged.
 

Detailed Description

Used to modify the hostility behavior of a hittable prop.

Member Function Documentation

◆ SetHostilityDamageAddend()

void SetHostilityDamageAddend ( Context instigator,
float value )

Set the amount of hostility a targeter gains when damaged.

Parameters
instigatorThe source context triggering this change
valueThe amount of hostility per damage instance

◆ SetHostilityLossRate()

void SetHostilityLossRate ( Context instigator,
float value )

Set the rate at which a targeter loses hostility per second.

Parameters
instigatorThe source context triggering this change
valueThe new hostility loss rate.