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
"SetEntityActive" Help.
Asaratha Offline
Junior Member

Posts: 14
Threads: 5
Joined: Jul 2011
Reputation: 0
#3
RE: "SetEntityActive" Help.

(03-14-2012, 05:28 AM)flamez3 Wrote: Is this the only script in your .hps.
No.


void OnStart()
{
AddEntityCollideCallback("Player", "door_slam", "Slam", true, 1);
AddEntityCollideCallback("Player", "prisonsound1", "Sound1", true, 1);
AddEntityCollideCallback("Player", "prisonsound2", "Sound2", true, 1);
SetEntityPlayerInteractCallback("potion_oil_1", "superscare", true);
}
void Slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("prison_2", true, true);
PlaySoundAtEntity("", "00_laugh.snt", "door_scare", 0, false);
GiveSanityDamage(5.0f, true);
}
void Sound1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "15_prisoner_scream.snt", "prisonsound1", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(10.0f, true);
}
void Sound2(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "insanity_baby_cry.snt", "prisonsound2", 0, false);
}
void superscare(string &in asItem, string &in asEntity)
{
SetEntityActive("armour_nice_complete_1", true);
SetEntityActive("armour_nice_complete_2", true);
SetEntityActive("armour_nice_complete_3", true);
SetEntityActive("armour_nice_complete_4", true);
SetEntityActive("armour_nice_complete_5", true);
}

This is my entire .hps.
03-14-2012, 05:47 AM
Find


Messages In This Thread
"SetEntityActive" Help. - by Asaratha - 03-14-2012, 05:21 AM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 05:28 AM
RE: "SetEntityActive" Help. - by Asaratha - 03-14-2012, 05:47 AM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 06:44 AM
RE: "SetEntityActive" Help. - by Equil - 03-14-2012, 08:14 AM
RE: "SetEntityActive" Help. - by Your Computer - 03-14-2012, 10:05 AM
RE: "SetEntityActive" Help. - by Equil - 03-14-2012, 10:25 AM
RE: "SetEntityActive" Help. - by Your Computer - 03-14-2012, 11:31 AM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 10:41 AM
RE: "SetEntityActive" Help. - by Strembitsky - 03-14-2012, 02:16 PM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 02:35 PM
RE: "SetEntityActive" Help. - by Stepper321 - 03-14-2012, 02:29 PM
RE: "SetEntityActive" Help. - by Asaratha - 03-14-2012, 10:46 PM
RE: "SetEntityActive" Help. - by Strembitsky - 03-14-2012, 07:35 PM
RE: "SetEntityActive" Help. - by pandasFTW - 03-14-2012, 08:44 PM
RE: "SetEntityActive" Help. - by SilentStriker - 03-14-2012, 09:04 PM



Users browsing this thread: 2 Guest(s)