02-04-2012, 10:16 PM
THE PROBLEM WAS THAT MY SCRIPT DID NOT WORK...
The solution was to rename my 2 files (.hps and .map) into the correct ones as they had diffrent names. So what i did was to rename A gentlemans dream to A_Gentlemans_Dream
Okay so basically i cant get a door to close on a trigger/area..
I am going to provide all the things that you guys could need.. I guess its just something easy
as pie.. Anyways lets get started ..
HERE IS MY PROBLEM INGAME U WILL PROBABLY UNDERSTAND WHERE IM POINTING:
PHOTO OF SCRIPT (For seeing if i got correct scripting language (.HPS))
directlink: http://lookpic.com/O/i2/1597/ANEk4zSl.png
SCRIPT IN TEXT:
////////////////////////////
// Run First time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea1", "func_slam", true, 1);
}
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("door1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
PICTURE FROM EDITOR:
directlink: http://lookpic.com/O/i2/310/PZ9dWpfA.png
directlink: http://lookpic.com/O/i2/1852/0Q3sSlHw.png
Now i belive all u need is just the scripting part, but i just threw it all in there..