Here is the script, and i tried to add "addEvent" before, but it didn't work
botTable = {}
addEvent("Accept",true)
addEventHandler("Accept",root,
function (hitElement)
botTable[Girl] = call ( getResourceFromName ( "slothbot" ), "spawnBot", x,y,z,0,115,Dim,Int,nil,0)
call ( getResourceFromName ( "slothbot" ), "setBotFollow",botTable[Girl], hitElement )
setTimer(
function ()
call(getResourceFromName("slothbot"), "setBotAttackEnabled",botTable[Girl],false ) end,60000,0)
end
)
addEventHandler ( "onBotWasted", root,
function ( attacker )
if (source == botTable[Girl]) then
outputChatBox("Mission Failed",attacker,255,0,0)
destroyElement(finishMarker)
destroyElement(myBlip)
end
end
)