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
Door/Script Area not working
schmupper Offline
Junior Member

Posts: 23
Threads: 1
Joined: Aug 2011
Reputation: 2
#3
RE: Door/Script Area not working

void OnStart()
{
AddUseItemCallback("", "lolkey_1", "level_orb_room_door_1", "KeyOnDoor", true);
AddEntityCollideCallback("Player", "DoorScare", "DoorScare", true, 1);
AddEntityCollideCallback("Player", "HorrorStart", "CollideHorrorStart", false, 1);
}


void HorrorStart(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "screams", "Player", 0, false);
GiveSanityDamage(10, true);
SetEntityActive("enemy_suitor_alois_1", true);
SetEntityActive("Servant_grunt_1", true);
SetEntityActive("Servant_brute_1", true);
ShowEnemyPlayerPosition("enemy_suitor_alois_1");
}


The function to call is not namned correct, should be CollideHorrorStart instead of HorrorStart.



''Oh. My. God. He's DEAD. Quickly, if he hasnt started to smell, give him the kiss of life!''

Clarence - The monkey hater
10-17-2011, 05:29 PM
Find


Messages In This Thread
Door/Script Area not working - by GhastDagger - 10-17-2011, 05:13 PM
RE: Door/Script Area not working - by Darion97 - 10-17-2011, 05:22 PM
RE: Door/Script Area not working - by schmupper - 10-17-2011, 05:29 PM
RE: Door/Script Area not working - by Darion97 - 10-17-2011, 05:39 PM
RE: Door/Script Area not working - by GhastDagger - 10-17-2011, 07:42 PM
RE: Door/Script Area not working - by flamez3 - 10-18-2011, 01:23 PM



Users browsing this thread: 1 Guest(s)