How to activate a spawner

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
TardosMor
Posts: 2
Joined: Wed Jan 08, 2014 3:56 pm
Location: Madrid - Spain

How to activate a spawner

Post by TardosMor »

Hi 4 all!

I just want to know how to activate something, for example a spawner or a torch holder, because the LOG 1 syntax did not seem to work.

Example:

Code: Select all

Spawner_1:activate();
I get an error "attempt to call method "activate" (a nil value)".

But this one works fine, instead. :?

Code: Select all

catacomb_altar_candle_10_1:destroy();
I don't understand why.
User avatar
AdrTru
Posts: 223
Joined: Sat Jan 19, 2013 10:10 pm
Location: Trutnov, Czech Republic

Re: How to activate a spawner

Post by AdrTru »

spawner_1.spawner:activate()
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
User avatar
TardosMor
Posts: 2
Joined: Wed Jan 08, 2014 3:56 pm
Location: Madrid - Spain

Re: How to activate a spawner

Post by TardosMor »

Works perfect !
Thank you
Post Reply