Category | Farming Simulator 17 |
Created | 27.01.2017 16:15 |
Tim Derks (timmiej93) | 27.01.2017 16:21 |
---|---|
For my mod in making, I need to add a SiloTrigger to a custom Storage object. Normally this wouldn't be too much of a problem, but I found that a SiloTrigger normally uses "g_currentMission:addStorageToTipTrigger(Storage, {Trigger})". Since there is no documentation available for g_currentMission stuff, I haven't got a clue what that function does, so I don't know how I should change the SiloTrigger to make it work again. Does anyone know what "addStorageToTipTrigger" does? Can I still use it with my custom Storage object, and do I just need to override some of the functions of the SiloTrigger? |
Bilbo Beutlin (BBeutlin) | 27.01.2017 18:32 |
---|---|
I don't know exactly, but my assumption: it is mainly meant for the silo extensions. Too bad, the LUA isn't published. Perhaps because there's still a bug within. ;) Just a short note here, relating your other thread: Be careful with usage of "self" construct. It is only valid within your object range. If you call external functions, which use also "self", you could use a superFunc() call to get the right pointer. For examples of usage see several vehicle specs, which also often use "superFunc". |
Note: Log in to post. Create a new account here.