- Found in:
- Vanilla
eventOnPartialCripple(ActorValueakActorValue, boolabCrippled)
Description
Wiki Description
Event called when this actor has a limb that goes from healthy to "partially crippled" or "partially crippled" to healthy.
The concept of partial crippling was created for robots, to provide an intermediate limb damage state, so that we can for instance play different hit effects.
This concept currently applies only to actors whose race has the "Use Subsegment Damage" flag set.
Documentation Comment
Recieved immeadiately after the limb of a robot (or other actor whose race allows sub-segment damage) has become (or ceased to be) partially crippled.
Parameters
ActorValueakActorValue
CK Wiki Description
True if the limb just went from healthy to partially crippled, False if the limb went from partially crippled to healthy.
boolabCrippled
Examples
Event OnPartialCripple(ActorValue akActorValue, bool abCrippled)
Debug.Trace("OnPartialCripple Received: " + akActorValue+ ", " + abCrippled)
EndEventAuto-Generated Example
Scriptname MyCoolScript extends Actor
event OnPartialCripple(ActorValue akActorValue, bool abCrippled)
Debug.trace("Event received - OnPartialCripple: akActorValue = " + akActorValue + " abCrippled = " + abCrippled)
endEvent