Frictional Games Forum (read-only)
do something when item is picked up - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: do something when item is picked up (/thread-9857.html)



do something when item is picked up - Elven - 08-19-2011

SetEntityPlayerInteractCallback("latern_1", "disablelatern", false);

and

void disablelatern(string &in asEntity)
{
SetEntityActive("latern_2", false);
}

doesn't work Sad


RE: do something when item is picked up - nemesis567 - 08-19-2011

It's lantern, not latern.


RE: do something when item is picked up - viperdream1 - 08-19-2011

What exactly does the error say?

And did you place SetEntityPlayerInteractCallback("latern_1", "disablelatern", false); between the "{}" of Void OnStart()?


RE: do something when item is picked up - Elven - 08-19-2011

thanks. It was indeed lantern. latern is lantern in estonian ^^. But it still doesnt work Sad

edit: Oh wait, i might have found mistake Smile!

Ok it worked! All problem was in lantern Tongue. I still didnt edit one latern into lantern Tongue