Frictional Games Forum (read-only)

Full Version: Need some help about editor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
http://www.frictionalgames.com/forum/thr...collection - script to use key on door

http://wiki.frictionalgames.com/hpl2/tut...omakenotes - 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
}
(06-15-2011, 04:11 PM)Roenlond Wrote: [ -> ]http://www.frictionalgames.com/forum/thr...collection - script to use key on door

http://wiki.frictionalgames.com/hpl2/tut...omakenotes - 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