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
#11
RE: How do I spawn a corpse in a closet when i open the door?

(01-12-2012, 04:49 AM)Tripication Wrote:
(01-12-2012, 04:46 AM)flamez3 Wrote: 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);
}
Not sure where ur getting the monster idea from...
_____________________________________________________
Ok, im uploading a really quick tutorial now, be dont in 10-15 minutes
http://www.youtube.com/watch?v=Qf9lELUpB...e=youtu.be
Spawn_Monster is just the function name.

SetEntityActive("name_of_corpse", true); Is what you should be looking at



01-12-2012, 05:58 AM
Find
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#12
RE: How do I spawn a corpse in a closet when i open the door?

(01-12-2012, 05:58 AM)flamez3 Wrote:
(01-12-2012, 04:49 AM)Tripication Wrote:
(01-12-2012, 04:46 AM)flamez3 Wrote: 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);
}
Not sure where ur getting the monster idea from...
_____________________________________________________
Ok, im uploading a really quick tutorial now, be dont in 10-15 minutes
http://www.youtube.com/watch?v=Qf9lELUpB...e=youtu.be
Spawn_Monster is just the function name.

SetEntityActive("name_of_corpse", true); Is what you should be looking at
aware, but why you used the word monster at all is beyond me. but it doesn't matter i guess

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-12-2012, 06:36 AM
Find




Users browsing this thread: 1 Guest(s)