Community Forum

How to search triggerId

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created13.11.2016 16:40

Adam Plachta (Unknown) 13.11.2016 16:45
I'm trying to set the colision mask of trigger. But I have a problem, this code doesn't work
function GasStation:new(id, trailer, customMt)
setCollisionMask(GasStation.triggerId, newMask);
In log file: Warning (LUA): 'setCollisionMask': Argument 1 has wrong type. Expected: Int. Actual: Nil
I don't understand why it's a nil value.
P.S. newMask, is a number value of course.

Tobias F (JD6930) 14.11.2016 10:14
GasStation.triggerId is nil, it doesn't exist.

Do you define GasStation.triggerId?

Note: Log in to post. Create a new account here.