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
Scripting help needed
Jovismcp Offline
Junior Member

Posts: 6
Threads: 1
Joined: Jul 2011
Reputation: 0
#5
RE: Scripting help needed

(07-17-2011, 09:09 AM)palistov Wrote: Ahh. Close Amnesia, open the folder that contains your map file and delete the map_cache file. Then re-launch Amnesia. That should solve your script problems, since the map cache has old information and may not match the names you use in your script. Good luck

Thanks, that solved the map problem but the scripts still fail to work. I'll post what I've got in the .hps file. Sorry if you find some really noobish mistakes:

void OnStart()
{
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddEntityCollideCallback("Player", "Rubble_Quest_Area", "GetRubbleQuest", true, 1);
AddEntityCollideCallback("Player", "Rubble_Complete_Area", "FinishRubbleQuest", true, 1);
}
void OnEnter()
{
}
void CollideRoomTwo(string &in asParent, string &in asChild, int State)
{
SetSwingDoorClosed("prison_section_1", true, true);
}

void GetRubbleQuest(string &in asParent, string &in asChild, int State)
{
AddQuest("rubblequest", "RubbleQuest");
}
void FinishRubbleQuest(string &in asParent, string &in asChild, int State)
{
CompleteQuest("rubble1quest", "RubbleQuest");
}

void OnLeave()
{
}
07-17-2011, 09:19 AM
Find


Messages In This Thread
Scripting help needed - by Jovismcp - 07-16-2011, 01:15 PM
RE: Scripting help needed - by palistov - 07-16-2011, 04:01 PM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:07 AM
RE: Scripting help needed - by palistov - 07-17-2011, 09:09 AM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:19 AM
RE: Scripting help needed - by palistov - 07-17-2011, 09:32 AM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:48 AM
RE: Scripting help needed - by Jovismcp - 07-17-2011, 09:23 PM



Users browsing this thread: 1 Guest(s)