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
Script Help Need help with Crowbar on door
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
Need help with Crowbar on door

hello i get error at 44,2 at this script im going to make a crowbar that opens a door here is script "
PHP Code: (Select All)
void OnStart()
{
SetEntityConnectionStateChangeCallback("lever""func_shelf");
AddEntityCollideCallback("Player""monsterspawn_1""MonsterFunction"true1); 
AddEntityCollideCallback("servant_brute_1""servant_grunt_1_remove""RemoveMonster"true1);
AddUseItemCallback("""crowbar_1""mansion_1""CrowbarOnDoor"true);
}

 
void func_shelf(string &in asEntityint alState)
{
     if (
alState == 1)
     {
     
SetMoveObjectState("shelf",1.0f);
     
PlaySoundAtEntity("""quest_completed.snt""shelf_move_1"0false);
          return;
     }
}
void MonsterFunction(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("servant_brue_1"true); 
    
AddEnemyPatrolNode("servant_brute_1""PathNodeArea_1"2"");
    
AddEnemyPatrolNode("servant_brute_1""PathNodeArea_2"0"");
    
AddEnemyPatrolNode("servant_brute_1""PathNodeArea_3"0"");
}
void RemoveMonster(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("servant_brute_1"false);
}    
void CrowbarOnDoor(string &in itemstring &in door)
{
    
SetSwingDoorLocked(mansion_1", false, true);
    PlaySoundAtEntity("", "
unlock_door", "mansion_1", 0, false);
    RemoveItem(crowbar_1);
}    
    
    void OnEnter() 
{

}

void OnLeave() 
{


http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-30-2011, 04:10 AM
Website Find


Messages In This Thread
Need help with Crowbar on door - by jessehmusic - 12-30-2011, 04:10 AM
RE: Need help with Crowbar on door - by flamez3 - 12-30-2011, 05:58 AM
RE: Need help with Crowbar on door - by flamez3 - 12-30-2011, 04:04 PM
RE: Need help with Crowbar on door - by flamez3 - 12-31-2011, 02:06 AM



Users browsing this thread: 1 Guest(s)