Code: Select all
C:/Users/PC/Documents/My Games/FarmingSimulator2019/mods/FS19_FollowMe/FollowMe.lua:224: attempt to compare number with nil
Error: Running LUA method 'update'.
line 224 of the error says
Code: Select all
In case player is so fast, that after stopping a regular AI, and in less than 200ms he manages to start FollowMe, then ensure the traffic collision is deleted.
LINE 224 if spec.aiTrafficCollisionRemoveDelay > 0 then
if spec.aiTrafficCollision ~= nil then
if entityExists(spec.aiTrafficCollision) then
delete(spec.aiTrafficCollision)
end
end
spec.aiTrafficCollisionRemoveDelay = 0
end