10-07-2010, 11:42 PM
I need help with trying to make it when the door closes, you get sanity damage. I need for this to get combined for it to work nicely.
GiveSanityDamage(float afAmount, bool abUseEffect);
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideRoomTwo" , true, 1);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_1", true, true);
}
void OnEnter()
{
}
void OnLeave()
{
}
Anyone please?
GiveSanityDamage(float afAmount, bool abUseEffect);
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideRoomTwo" , true, 1);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_1", true, true);
}
void OnEnter()
{
}
void OnLeave()
{
}
Anyone please?