Category | Scripting |
Created | 01.05.2022 15:43 |
Julius Becker (Aruetiise) | 01.05.2022 15:43 |
---|---|
Hello, i am creating a instance of MapHostpot with local hotspot = MapHotspot:new("Hotspot", MapHotspot.CATEGORY_MISSION) When i try to call setColor(color) or every other methode with hotspot:setColor(color) i get "attempt to call method 'setColor' (a nil value)". When i call it with MapHotspot.setColor(hotspot,color) i get no error. But ingameMap:addMapHotspot(hotspot) calls hotspot:getCategory() internaly which results in the same error. Can any one tell where my mistake is? Julius |
Note: Log in to post. Create a new account here.