//DookuC state InActive { Conditions { if IAm "Yoda" == 0 goto Activate if Message "ActivateYoda" > 0 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate } } state Base { ReferenceScript { Script=Jedi Source=Global ReturnState=Base Conditions { if AIOverrideControl == 0 and if PlayerDeflectingPart == 0 } } Conditions { if PlayerDeflectingPart == 1 goto DeflectPlayersPart } Actions { DeflectPlayersPart "FALSE" SetAIOverrideControl "FALSE" FollowPlayer "0.75" } } state MiniCut { Conditions { } Actions { SnapWeaponOut SetLocator "indexed" "name=start" GoToLocator SetMessage "name=PlayersReady" "increment=1" SetState "Base" } } state DeflectPlayersPart { Conditions { if PlayerDeflectingPart == 0 goto Base } Actions { DeflectPlayersPart } } state Disabled { Conditions { } Actions { DontPush SetDefensive "FALSE" SnapWeaponOut "FALSE" OverrideAnimation "from=all" "to=NoHandIdle" SetSide "neutral" SetLocator "name=disabled" SnapToLocator ;FacePlayer } }