Frictional Games Forum (read-only)
How do I spawn a corpse in a closet when i open the door? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do I spawn a corpse in a closet when i open the door? (/thread-12540.html)

Pages: 1 2


RE: How do I spawn a corpse in a closet when i open the door? - flamez3 - 01-12-2012

(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=Qf9lELUpBXE&feature=youtu.be
Spawn_Monster is just the function name.

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





RE: How do I spawn a corpse in a closet when i open the door? - Tripication - 01-12-2012

(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=Qf9lELUpBXE&feature=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