Frictional Games Forum (read-only)

Full Version: Script Area won't trigger
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i have made an script area and it will not trigger.

PHP Code:
////////////////////////////
// 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?
Nevermind fixed it myself.
(01-29-2012, 04:36 PM)Gamemakingdude Wrote: [ -> ]Nevermind fixed it myself.
Bull