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
Multiple Issues Help Script Area won't trigger
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#1
Script Area won't trigger

Hi, i have made an script area and it will not trigger.

PHP Code: (Select All)
////////////////////////////
// Run first time starting map
void OnStart()
{
    
//Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
    
if(ScriptDebugOn())
    {
        
GiveItemFromFile("lantern""lantern.ent");
 
        for(
int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i"tinderbox.ent");
    }
    
AddEntityCollideCallback("Player","ScriptArea_1","FlashScare",false,1);
    for (
int x 13x++) {
        
AddEnemyPatrolNode("male_arm_1""PathNodeArea_"+x0"");
        }
}

void FlashScare(string &in asParentstring &in asChildint alState)
{
    
ShowEnemyPlayerPosition("male_arm_1");
    
AddDebugMessage("Information",false);
    
}
    

void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntity,false,true);
    
PlaySoundAtEntity("","unlock_door"asEntity0false);
    
RemoveItem(asItem);
    if (
asEntity == "cabinet_metal_1") {
        
SetEntityActive("block_box_1",false);
        }
}


    
////////////////////////////
// Run when entering map
void OnEnter()
{
 
}
 
////////////////////////////
// Run when leaving map
void OnLeave()
{
 


Anyone know why?

Rep if like me or im helpful or you love my stories!
Stephanos house
01-29-2012, 11:31 AM
Find


Messages In This Thread
Script Area won't trigger - by Gamemakingdude - 01-29-2012, 11:31 AM
RE: Script Area won't trigger - by Gamemakingdude - 01-29-2012, 04:36 PM
RE: Script Area won't trigger - by flamez3 - 01-29-2012, 04:37 PM



Users browsing this thread: 1 Guest(s)