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?
Tripication Offline
Member

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

1, use a collision callback(Script Area)

even some entities will not work, but i just tested it then. If you goto Entities>Organic>Corpse_male It will work.

make sure you have this

void OnStart()
{
AddEntityCollideCallback("Player", "[AREANAME]", "SpawnBody", true, 1);
}

void SpawnBody(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("corpse_male_1", true);
}

________________________________________________
I can make a quick video if you want, i have alot of free time on my hands.

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-12-2012, 03:17 AM by Tripication.)
01-12-2012, 03:07 AM
Find


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



Users browsing this thread: 1 Guest(s)