Community Forum

Error when create new object from the game...

Forum Overview >> Scripting

Created14.11.2016 12:27

Thomas A. (Unknown) 14.11.2016 12:27
Hello, I would like create new object based in the game object, but I have this error in log when load savegame:

Error: E:/Mis Documentos/My Games/FarmingSimulator2017/mods/New_Tank/Pallet.lua:6: attempt to call global 'InitStaticObjectClass' (a string value)

What I need write in this line? What does refer to? OBJECT_FILLABLE_PALLET

InitStaticObjectClass(FillablePallet, "FillablePallet", ObjectIds.OBJECT_FILLABLE_PALLET);

I write:

InitStaticObjectClass(FillablePallet, "FillablePallet", ObjectIds.PALLET);

Thomas A. (Unknown) 15.11.2016 09:34
Emil, can you help me? Please.

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