Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two questions.
A Tricky Carnie Offline
Member

Posts: 72
Threads: 15
Joined: Sep 2011
Reputation: 0
#3
RE: Two questions.

(10-11-2011, 09:42 PM)Tanshaydar Wrote: http://wiki.frictionalgames.com/hpl2/amn..._functions

void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

Immediatly loads another map.

asMapName - the file to load
asStartPos - the name of the StartPos on the next map
asStartSound - the sound that is played when the change starts
asEndSound - the sound that is played when the new map is loaded
So If I wanted that to trigger with a note, would the line of script be "AddEntityPlayerInteractCallback("", "note_4", "ChangeMap", "")"


Quote:void StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);

Starts the end credits screen.

asMusic - the music to play (including .ogg)
abLoopMusic - determines whether the music should loop
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)
alEndNum - Amnesia has 3 different endings and displays a code at the bottom. Determines which code is displayed. 0-2 will display codes, any other integer will not.
And to make that when the player goes through a door, would that have to be run when the player is leaving the map? (So under // Run when leaving map
void OnLeave()
{


})


10-12-2011, 11:00 PM
Find


Messages In This Thread
Two questions. - by A Tricky Carnie - 10-11-2011, 09:40 PM
RE: Two questions. - by Tanshaydar - 10-11-2011, 09:42 PM
RE: Two questions. - by A Tricky Carnie - 10-12-2011, 11:00 PM
RE: Two questions. - by Statyk - 10-13-2011, 01:46 AM
RE: Two questions. - by A Tricky Carnie - 10-13-2011, 02:13 AM
RE: Two questions. - by Statyk - 10-14-2011, 02:03 AM
RE: Two questions. - by A Tricky Carnie - 10-14-2011, 02:31 AM
RE: Two questions. - by Statyk - 10-14-2011, 02:35 AM
RE: Two questions. - by A Tricky Carnie - 10-14-2011, 02:39 AM
RE: Two questions. - by Statyk - 10-14-2011, 02:43 AM
RE: Two questions. - by A Tricky Carnie - 10-14-2011, 02:49 AM
RE: Two questions. - by Statyk - 10-14-2011, 02:54 AM
RE: Two questions. - by A Tricky Carnie - 10-14-2011, 01:08 AM



Users browsing this thread: 1 Guest(s)