Frictional Games Forum (read-only)
Need some help about editor - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Hints, help and spoilers (https://www.frictionalgames.com/forum/forum-34.html)
+--- Thread: Need some help about editor (/thread-8619.html)



Need some help about editor - maneks - 06-15-2011

Hello I have a few question about HPL editor. I am new there, I already know the basics etc. but I don't know how to make notes(letters) with text that player can read and something about timing like timing sounds (example: when you pick up a key a sound will play) and last question how to combine key with door like laboratory key that can open castle locked door thx for help Smile



RE: Need some help about editor - Roenlond - 06-15-2011

http://www.frictionalgames.com/forum/thread-5117.html?highlight=script+recollection - script to use key on door

http://wiki.frictionalgames.com/hpl2/tutorials/script/howtomakenotes - notes

timers: (This code will not work as it is, it is only a snippet. You need to have a callback in the void OnStart() to run the KeyPickup function when you pick up the key.)
Code:
void KeyPickup(string &in entity)
{
AddTimer("keytimer", 2.0f, "Timer"); // keytimer is the internal name (basically only for easier recognition here), 2.0f is the time in seconds and "Timer" is the function to run after 2.0 seconds.
}

void Timer(string &in asTimer)
{
//Functions you want here, sound played
}



RE: Need some help about editor - maneks - 06-15-2011

(06-15-2011, 04:11 PM)Roenlond Wrote: http://www.frictionalgames.com/forum/thread-5117.html?highlight=script+recollection - script to use key on door

http://wiki.frictionalgames.com/hpl2/tutorials/script/howtomakenotes - notes

timers: (This code will not work as it is, it is only a snippet. You need to have a callback in the void OnStart() to run the KeyPickup function when you pick up the key.)
Code:
void KeyPickup(string &in entity)
{
AddTimer("keytimer", 2.0f, "Timer"); // keytimer is the internal name (basically only for easier recognition here), 2.0f is the time in seconds and "Timer" is the function to run after 2.0 seconds.
}

void Timer(string &in asTimer)
{
//Functions you want here, sound played
}

thx