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
Activating sanity and makign a level door operate.
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#1
Activating sanity and makign a level door operate.

I think i have found the right scripting but have no idea what to do with it please write down exactly what i should do this is my script already please copy paste the scripting you do into mine so i know hwo it is set out, Thanks.

Edit: and scripting for a quest woudl also be good, i think the script is this -

void AddQuest(string& asName, string& asNameAndTextEntry);
void CompleteQuest(string& asName, string& asNameAndTextEntry);
bool QuestIsCompleted(string& asName);

My script already(please add scripting you do into it).

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddUseItemCallback("", "StudyKey", "castle_arched01_3", "UsedKeyOnDoor", true);
}
void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_arched01_2", true, true);
ShowEnemyPlayerPosition("servant_grunt_1");
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_arched01_3", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_arched01_3", 0, false);
RemoveItem("StudyKey");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
10-04-2010, 10:11 AM
Find


Messages In This Thread
Activating sanity and makign a level door operate. - by LoneWolf - 10-04-2010, 10:11 AM



Users browsing this thread: 1 Guest(s)