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
iron maiden bursts open?
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#4
RE: iron maiden bursts open?

(06-26-2012, 02:36 PM)modoscar Wrote:
(06-26-2012, 01:14 PM)Hartmann Wrote: What is the script for making a iron maiden burst open? i looked for quite a while but i cant make it work
Try this

void OnStart()
{
AddEntityCollideCallback("Player", "kista1", "kista1", true , 1);
}

void kista1(string &in asParent, string &in asChild, int alState)


{
SetEntityActive("maidenopen", true);
SetEntityActive("maidenclosed", false);
CreateParticleSystemAtEntity("", "ps_iron_maiden_event_smoke.ps", "ScriptArea_1", false);
PlaySoundAtEntity("maidenopen", "24_iron_maiden", "maidenopen ", 0 , false);
StartScreenShake(0.3, 0.3, 0, 0.3);
AddPlayerSanity( -10 );
}

To make this work you need to make 2 iron maidens on the exact same location, one opened one closed.
Call them "maidenopen" and "maidenclosed" and have the "maidenopen" not active.
Also make 2 script areas, one in this case called "kista1" in front of the iron maiden. Make the second area inside the iron maiden and call it "ScriptArea_1"

So, when the playes comes near the iron maiden it will open, scream and a red smoke will come out of it. And the screen will shake a little bit. It will also remove 10 sanity.
thanks! that was a good scare
06-26-2012, 10:01 PM
Find


Messages In This Thread
iron maiden bursts open? - by Hartmann - 06-26-2012, 01:14 PM
RE: iron maiden bursts open? - by modoscar - 06-26-2012, 02:36 PM
RE: iron maiden bursts open? - by Hartmann - 06-26-2012, 10:01 PM
RE: iron maiden bursts open? - by Cruzore - 06-26-2012, 02:55 PM



Users browsing this thread: 1 Guest(s)