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
2 keys script
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#12
RE: 2 keys script

(03-10-2012, 01:33 PM)flamez3 Wrote: void OnStart()
{
SetEntityPlayerInteractCallback("notename", "MonsterSpawm", true);
}

void MonsterSpawn(string &in asEntity)
{
SetEntityActive("monstername", true);
}
If you used pasted this without changing anything in it other then the note name I see what might've been wrong.

SetEntityPlayerInteractCallback("notename", "MonsterSpawm", true);

MonsterSpawm > MonsterSpawn.

That should make the void MonsterSpawn(string &in asEntity) work correctly.

If it still doesn't work, try MonsterSpawn(string &in item)
Anyone who may say that is incorrect, it works for me just fine.
void spawn_func(string &in item)
{
SetEntityActive("servant_grunt_1", true);
}

That works perfectly for me.


Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
03-10-2012, 08:28 PM
Find


Messages In This Thread
2 keys script - by FlawlessHappiness - 03-10-2012, 11:32 AM
RE: 2 keys script - by flamez3 - 03-10-2012, 11:45 AM
RE: 2 keys script - by Stepper321 - 03-10-2012, 12:14 PM
RE: 2 keys script - by flamez3 - 03-10-2012, 12:47 PM
RE: 2 keys script - by FlawlessHappiness - 03-10-2012, 12:29 PM
RE: 2 keys script - by Stepper321 - 03-10-2012, 12:43 PM
RE: 2 keys script - by FlawlessHappiness - 03-10-2012, 01:08 PM
RE: 2 keys script - by flamez3 - 03-10-2012, 01:33 PM
RE: 2 keys script - by FlawlessHappiness - 03-10-2012, 02:55 PM
RE: 2 keys script - by flamez3 - 03-10-2012, 03:01 PM
RE: 2 keys script - by FlawlessHappiness - 03-10-2012, 03:23 PM
RE: 2 keys script - by DaAinGame - 03-10-2012, 08:28 PM



Users browsing this thread: 2 Guest(s)