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
[HELP!] Leveldoor...
sasukeroxxx Offline
Junior Member

Posts: 39
Threads: 5
Joined: Sep 2011
Reputation: 0
#1
Bug  [HELP!] Leveldoor...

I am Brazilian, and sorry for bad english. so I'm having a lot of progress with my "custom map" but I can not unlock a "Leveldoor" put everything right in the script, the name and such things but every time I use the key in the door we teleport to another map there appears the message: "Can not use the item this way" I'm just having trouble with it, did everything and could not find the problem Sad a help would be great =D PS: the door name is like "LevelDoor" as the key "Key6"

void OnStart()
{
AddEntityCollideCallback("Player" , "Wood_Break_Sound" , "QuestUpdate" , true , 1);
AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1);
AddUseItemCallback("", "Key6", "LevelDoor", "UnlockLevelDoor", true);
}
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("door2", true, true);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);

PlaySoundAtEntity("", "break_wood.snt", "Ambush_Door", 0.0f, false);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0.0f, false);
GiveSanityDamage(50.0, true);
SetEntityPlayerInteractCallback("Ambush_Door", "PlayerInteractDoor", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void UnlockLevelDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("LevelDoor", false);
PlaySoundAtEntity("", "unlock_door", "LevelDoor", 0.0f, false);
RemoveItem("Key6");
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_14", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_17", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_18", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_19", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_20", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_21", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_22", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_23", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 2, "");

}



Hallucination

Constantine - in Construction
(This post was last modified: 10-23-2011, 09:24 PM by sasukeroxxx.)
10-23-2011, 07:38 AM
Find


Messages In This Thread
[HELP!] Leveldoor... - by sasukeroxxx - 10-23-2011, 07:38 AM
RE: [HELP!] Leveldoor... - by Brute - 10-23-2011, 08:06 AM
RE: [HELP!] Leveldoor... - by flamez3 - 10-23-2011, 12:12 PM
RE: [HELP!] Leveldoor... - by sasukeroxxx - 10-23-2011, 09:22 PM



Users browsing this thread: 1 Guest(s)