//FactoryE ReferenceScript { Script=FreePlayDefend Source=Global ReturnState=Base Conditions { } } state Base { Conditions { if OnSameObjectAsPlayer == 1 goto Idle } Actions { FollowPlayer "0.75" } } state Idle { Conditions { if OnSameObjectAsPlayer == 0 goto Base } Actions { FacePlayer } }