Category | Farming Simulator 17 |
Created | 13.11.2016 16:40 |
Adam Plachta (Unknown) | 13.11.2016 16:45 |
---|---|
Hello, 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); end; 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.