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
"Look" script not working
Wank Offline
Junior Member

Posts: 28
Threads: 11
Joined: May 2013
Reputation: 0
#1
"Look" script not working

I get errors. Here it is-

void OnStart()
{
AddEntityCollideCallback("Player", "scr_spawnEnemy1", "SpawnEnemy1", true, 1);
AddEntityCollideCallback("Player", "spawnEnemy2", "EventCollide", true, 1);
AddEntityCollideCallback("Player", "spawnEnemy2", "Sound", true, 1);
AddEntityCollideCallback("Player", "spawnEnemy2", "Sound", true, 1);
AddEntityCollideCallback("Player", "LookScript", "StartPlayerLookAt", true, 1);
AddUseItemCallback("", "key_study_one", "mansion_3", "UseKeyOnDoor", true);
AddUseItemCallback("", "key_tomb", "level_wood", "UseKeyOnDoor2", true);
PreloadSound("break_glass_bottle.snt");
PreloadSound("break_glass_bottle.snt");
}
void SpawnEnemy1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Enemy1", true);
SetEntityActive("StatueOne", true);
AddEnemyPatrolNode("Enemy1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_6", 0, "");
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
RemoveItem(asItem);
}
void EventCollide(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Enemy2", true);
SetEntityActive("Enemy3", true);
SetEntityActive("deformed_man", true);
PlaySoundAtEntity("", "break_wood_metal.snt", "spawnEnemy2", 0.0, false);
}
void UseKeyOnDoor2(string &in asItem, string &in asEntity)
}
SetSwingDoorLocked("level_wood", false, true);
PlaySoundAtEntity("", "unlock_door", "level_wood", 0, false);
RemoveItem(asItem);
}
void StartPlayerLookAt(string& "Look3", 3.0f, 3.0f, "");
{
void OnLeave()

{
}
05-26-2013, 03:41 PM
Find


Messages In This Thread
"Look" script not working - by Wank - 05-26-2013, 03:41 PM
RE: "Look" script not working - by Wank - 05-26-2013, 04:29 PM
RE: "Look" script not working - by Wank - 05-26-2013, 05:02 PM
RE: "Look" script not working - by 7heDubz - 05-26-2013, 04:41 PM
RE: "Look" script not working - by Traggey - 05-26-2013, 06:12 PM



Users browsing this thread: 1 Guest(s)