StretchVanb Posted April 27, 2015 Share Posted April 27, 2015 (edited) Hi, i have a (probably) simple problem. Whenever i activate my mod, which simply adds the Glommer's sanity aura to the Catcoon, i get a error, either '(' expected near "local", or, once i try to fix it, <name> or '...'expected near local. This is my code: local function cute local self = inst:AddComponent("sanityaura") inst.components.sanityaura.aurafn = CalcSanityAura AddPrefabPostInit('catcoon', cute) Edited April 27, 2015 by StretchVanb Link to comment https://forums.kleientertainment.com/forums/topic/53269-error-while-editing-catcoon-prefab/ Share on other sites More sharing options...
DarkXero Posted April 27, 2015 Share Posted April 27, 2015 Incorrect syntax.local function CalcSanityAura(inst, observer) return GLOBAL.TUNING.SANITYAURA_TINYendlocal function cute(inst) inst:AddComponent("sanityaura") inst.components.sanityaura.aurafn = CalcSanityAuraendAddPrefabPostInit("catcoon", cute) Link to comment https://forums.kleientertainment.com/forums/topic/53269-error-while-editing-catcoon-prefab/#findComment-632616 Share on other sites More sharing options...
StretchVanb Posted April 27, 2015 Author Share Posted April 27, 2015 Incorrect syntax.local function CalcSanityAura(inst, observer) return GLOBAL.TUNING.SANITYAURA_TINYendlocal function cute(inst) inst:AddComponent("sanityaura") inst.components.sanityaura.aurafn = CalcSanityAuraendAddPrefabPostInit("catcoon", cute)Thank you so much! This is my first mod, and i am grateful for you showing me what i did wrong. Link to comment https://forums.kleientertainment.com/forums/topic/53269-error-while-editing-catcoon-prefab/#findComment-632627 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now