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
How do I spawn a corpse in a closet when i open the door?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#9
RE: How do I spawn a corpse in a closet when i open the door?


Actually, I just noticed he said he wanted to have it when he opens the door himself.


Quote:void OnStart()
{
SetEntityPlayerInteractCallback("name_of_closet", "Spawn_Monster", true);
}

void Spawn_Monster(string &in asEntity)
{
SetEntityActive("Name_of_corpse", true);
}

01-12-2012, 04:46 AM
Find


Messages In This Thread
RE: How do I spawn a corpse in a closet when i open the door? - by flamez3 - 01-12-2012, 04:46 AM



Users browsing this thread: 2 Guest(s)