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
Gamemakingdude Offline
Senior Member

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

Nevermind fixed it myself.

Rep if like me or im helpful or you love my stories!
Stephanos house
01-29-2012, 04:36 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Script Area won't trigger

(01-29-2012, 04:36 PM)Gamemakingdude Wrote: Nevermind fixed it myself.
Bull

01-29-2012, 04:37 PM
Find




Users browsing this thread: 2 Guest(s)