Frictional Games Forum (read-only)

Full Version: do something when item is picked up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
SetEntityPlayerInteractCallback("latern_1", "disablelatern", false);

and

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

doesn't work Sad
It's lantern, not latern.
What exactly does the error say?

And did you place SetEntityPlayerInteractCallback("latern_1", "disablelatern", false); between the "{}" of Void OnStart()?
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