Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
do something when item is picked up
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#1
do something when item is picked up

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

and

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

doesn't work Sad

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 08-19-2011, 12:50 AM by Elven.)
08-19-2011, 12:31 AM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#2
RE: do something when item is picked up

It's lantern, not latern.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
08-19-2011, 12:33 AM
Find
viperdream1 Offline
Junior Member

Posts: 12
Threads: 1
Joined: Aug 2011
Reputation: 0
#3
RE: do something when item is picked up

What exactly does the error say?

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

08-19-2011, 12:34 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#4
RE: do something when item is picked up

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

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 08-19-2011, 12:50 AM by Elven.)
08-19-2011, 12:46 AM
Find




Users browsing this thread: 1 Guest(s)