CombatDamage
class SoftKitty.CombatDamage : GraphInstance
GraphInstance / CombatDamage
CombatDamage inherits from GraphInstance and adds specific functionality for handling damage detection and dealing damage in combat scenarios.
Methods
public void SetEnable(bool _enable)
Enables or disables damage detection.
public void SetEnable(float _autoDisableAfterSeconds)
Enables damage detection and automatically disables it after a specified number of seconds.
public void Launch()
Launch the projectile to its current forward direction. The damage detection will be enabled in the same time.
public void Launch(Vector3 _direction)
Launch the projectile to the specified direction. The damage detection will be enabled in the same time.
public void PhysicsCast()
Perform a Physics detection for Raycast|SphereCast|Overlap_Sphere|Overlap_Capsule
public override void SetDynamicValue(string _uid, float _value)
Sets a dynamic variable in the visual graph object by its unique UID.
public void DealDamage()
Manually triggers the damage calculation. Triggers are included in the calculation.
public void DealDamage(Entity _target)
Manually deals damage to the provided target. Triggers are included in the calculation.
public void DealDamage(Entity_dealer,Entity _target)
Manually deals damage to the provided target with the provided dealer. Triggers are included in the calculation.
public void PerformAction(int _hash)
Ignores all triggers and directly performs all actions. An integer hash is required for caching the result.
public bool isTriggered(int _hash)
Returns whether all trigger nodes are triggered. An integer hash is required for caching the result.
public bool IfTriggerThenPerformAction()
Calculates the triggers. If all are triggered, it performs all actions and returns the trigger result.