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 Cant see the error :S
Darkboot Offline
Junior Member

Posts: 31
Threads: 8
Joined: Jun 2012
Reputation: 0
#4
RE: Cant see the error :S

i dont know how but its only 11,1 now and it is Another one since i moves 27,1. Here's the script Smile

void OnStart()

{
AddUseItemCallback("", "awesomekey_1", "mansion_1", "UsedKeyOnDoor", true);
GiveItemFromFile("lantern", "lantern.ent");
AddEntityCollideCallback("Player", "enemy_spawner_1", "monsterActive", true, 1);
AddEntityCollideCallback("Player", "PlayerStartArea_1", "Restart", true, 1);
}

void Restart(string &in asParent, string &in asChild, int alState)
void UsedKeyOnDoor(string &in asItem, string &in asEntity) <---- thats 11,1
void monsterActive(string &in asParent, string &in asChild, int alState)

{
SetEntityActive("enemy_spawner_2", true);
AddEnemyPatrolNode("enemy_spawner_1", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("enemy_spawner_1", "PathNodeArea_2", 1.0f, "");
AddEnemyPatrolNode("enemy_spawner_1", "PathNodeArea_1", 1.0f, "");
AddEnemyPatrolNode("enemy_spawner_1", "PathNodeArea_4", 1.0f, "");
AddEnemyPatrolNode("enemy_spawner_1", "PathNodeArea_5", 1.0f, "");
AddEnemyPatrolNode("enemy_spawner_1", "PathNodeArea_6", 1.0f, "");
AddEnemyPatrolNode("enemy_spawner_1", "PathNodeArea_7", 1.0f, "");
CheckPoint ("FirstCheckpoint", "PlayerStartArea_1", "Happening", "DeathCategory", “Deathtext”);
}

void Happening(string &in asName, int alCount)

{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("","unlock_door", "mansion_1", 0, false);
RemoveItem("awesomekey_1");
}

void OnEnter()

{
FadeOut(0.0f);
FadeIn(5.0f);
}


void OnLeave()
{

}
(This post was last modified: 05-25-2013, 01:48 PM by Darkboot.)
05-25-2013, 01:47 PM
Find


Messages In This Thread
Cant see the error :S - by Darkboot - 05-25-2013, 01:34 PM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 01:39 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 01:45 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 01:47 PM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 01:51 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 02:07 PM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 02:14 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 02:17 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 03:37 PM
RE: Cant see the error :S - by PutraenusAlivius - 05-25-2013, 03:46 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 03:45 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 04:30 PM
RE: Cant see the error :S - by Romulator - 05-25-2013, 04:41 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 06:04 PM
RE: Cant see the error :S - by PutraenusAlivius - 05-26-2013, 02:02 AM
RE: Cant see the error :S - by OriginalUsername - 05-25-2013, 06:55 PM
RE: Cant see the error :S - by Darkboot - 05-25-2013, 08:04 PM
RE: Cant see the error :S - by pewds..fan - 06-01-2013, 09:04 AM
RE: Cant see the error :S - by PutraenusAlivius - 06-01-2013, 10:09 AM



Users browsing this thread: 1 Guest(s)