//FactoryA state InActive { Conditions { if Message "met_R2D2" == 1 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate } } ReferenceScript { Script=GenericDefend Source=Global ReturnState=Base Conditions { } } state Base { Conditions { } Actions { FollowPlayer "1.5" } }