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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monster Appear on Pickup
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
Monster Appear on Pickup

Hello, can anyone help me with this? I am trying to make the player pickup a key and then a monster spawns. I pickup the key and no monster... Help Big Grin?

Lawllulz
07-28-2011, 02:04 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Monster Appear on Pickup

Name of example key: "Key01"
Name of example monster: "MonsterName"

Remember that there can only be one of the same function, so if you already have a void OnStart() function, put the SetEntityPlayerInteractCallback into the one you had at first. Wink

void OnStart()
{
     SetEntityPlayerInteractCallback("Key01", "Func01", true);
}
void Func01(string &in asEntity)
{
     SetEntityActive("MonsterName", true);
}

(This post was last modified: 07-28-2011, 03:53 AM by Kyle.)
07-28-2011, 03:50 AM
Find




Users browsing this thread: 1 Guest(s)