spacebuild/sbep

Advanced Gyro Pod AimMode = 1 error

Closed this issue · 3 comments

When wiring the input of the gyro AimMode to a value of 1, the gyro refuses to move and will not work. It spams these errors to the console when AimMode = 1.

[ERROR] addons/sbep-master/lua/entities/gyropod_advanced/init.lua:560: attempt to perform arithmetic on a nil value

  1. AimByTarPos - addons/sbep-master/lua/entities/gyropod_advanced/init.lua:560
    1. unknown - addons/sbep-master/lua/entities/gyropod_advanced/init.lua:353

What is it meant to do?

When it works normally it takes the basic inputs (Forward makes it go forward, ect) however it sets its angle so it points towards the world XYZ vector on the AimVec input. At the moment, if AimMode = 1 then it ignores all of its inputs and seems to freeze up until you take it out of AimMode by making AimMode = 0.

I fixed this.