The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
enemy area not working?
39Games Offline
Junior Member

Posts: 48
Threads: 14
Joined: Jan 2013
Reputation: 0
#1
enemy area not working?

I have a brute to walk into an area and a door will break, and it just wont work, just the sanity loss when he walks into it... Here is the code.
void OnStart ()
{
    AddEntityCollideCallback("brute1", "poof", "disspear", true, 1);
    AddEntityCollideCallback("brute1", "break2", "break2", true, 1);    
    AddEntityCollideCallback("brute1", "break3", "break3", true, 1);
    AddEntityCollideCallback("brute1", "break4", "break4", true, 1);
    AddEntityCollideCallback("brute1", "AreaPushDoor", "break1", true, 1);
    
}
void break2(string &in asParent, string &in asChild, int alState)
{
    SetPropHealth("BDoor2", -1);
    GiveSanityDamage(0.1f, true);        
}
void break3(string &in asParent, string &in asChild, int alState)
{
    SetPropHealth("BDoor3", -1);
    GiveSanityDamage(0.1f, true);        
}
void break4(string &in asParent, string &in asChild, int alState)
{
    SetPropHealth("prison", -1);
    GiveSanityDamage(0.1f, true);        
}
void break1(string &in asParent, string &in asChild, int alState)
{
    SetPropHealth("realdoor", -1);
    GiveSanityDamage(0.1f, true);        
}

02-06-2013, 06:44 AM
Find


Messages In This Thread
enemy area not working? - by 39Games - 02-06-2013, 06:44 AM
RE: enemy area not working? - by 39Games - 02-06-2013, 07:40 AM
RE: enemy area not working? - by NaxEla - 02-06-2013, 07:42 AM
RE: enemy area not working? - by 39Games - 02-06-2013, 07:54 AM



Users browsing this thread: 1 Guest(s)