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
|
How do I spawn a corpse in a closet when i open the door? - kartanonperuna - 01-11-2012 What kind of script? RE: How do I spawn a corpse in a closet when i open the door? - Elven - 01-11-2012 place it there already, make it unactive and then use script: SetEntityActive("name", true); RE: How do I spawn a corpse in a closet when i open the door? - kartanonperuna - 01-11-2012 Yeah i tried it but it didnt work. RE: How do I spawn a corpse in a closet when i open the door? - Elven - 01-11-2012 It has to. Make sure that you dont have static corpse, it has to be entity. RE: How do I spawn a corpse in a closet when i open the door? - flamez3 - 01-12-2012 Make the closet bigger, the grunt will just fly out f you don't RE: How do I spawn a corpse in a closet when i open the door? - Tripication - 01-12-2012 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. RE: How do I spawn a corpse in a closet when i open the door? - flamez3 - 01-12-2012 (01-12-2012, 03:07 AM)Tripication Wrote: 1, use a collision callback(Script Area) Mainly entities that can be picked up don't usually work with SetEntityActive, same as tables and couches ect. RE: How do I spawn a corpse in a closet when i open the door? - Tripication - 01-12-2012 (01-12-2012, 03:46 AM)flamez3 Wrote:(01-12-2012, 03:07 AM)Tripication Wrote: 1, use a collision callback(Script Area) Ok, well i've made a tutorial, i will cut it and upload it soon enoug, will be back to post link ____________________________________________________ Ehh, i'll have to do it again, was gonna take too long to render. RE: How do I spawn a corpse in a closet when i open the door? - flamez3 - 01-12-2012 Actually, I just noticed he said he wanted to have it when he opens the door himself. Quote:void OnStart() RE: How do I spawn a corpse in a closet when i open the door? - Tripication - 01-12-2012 (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.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 |