require('o_mis') function onStartup(self) end function onCollision(self, msg) local target = msg.objectID local pet = target:GetPetID().objID local faction = target:GetFaction() if faction and faction.faction == 1 then pet:SetVar("AiDisabled", false) pet:AddPetState{iStateType = 10 } pet:SetVar("PathingActive", true ) pet:SetVar("WPEvent_NUM", 1) pet:SetVar("attached_path", "Bridge_Path" ) pet:SetVar("attached_path_start", 0 ) pet:FollowWaypoints() end end