- a command to stop the SendAnimationEvent, and bring back the NPC to his "normal" animation state.
- A way to make the NPC stay for 15 sec on the ground in the last script.
With one of those two things, I can do what I want...
; Code to put NPC asleep here, and a push to knock him down. NPC.Deactivate() RegisterForSingleUpdate(15)Event OnUpdate() NPC.Activate()EndEvent
Event OnEffectStart (Actor Target,Actor Caster) ; Whatever code makes Target unconscious ObjectReference InvisibleMarker = Target.PlaceAtMe(InvisibleMarkerType,1) InvisibleMarker.MoveTo(Target,0.0,0.0,5000.0) InvisibleMarker.PushActorAway(Target,20.0)EndEvent
e.g. YourRefAlias.ForceRefTo(YourActor)
This will assign "YourActor" to "YourRefAlias", and it will inherit the new AI