Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help about editor
Author Message
maneks Offline
Junior Member

Posts: 3
Joined: Jun 2011
Reputation: 0
Post: #1
Smile Need some help about editor
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
06-15-2011 04:05 PM
Find all posts by this user Quote this message in a reply
Roenlond Offline
Senior Member

Posts: 331
Joined: Apr 2011
Reputation: 0
Post: #2
RE: Need some help about editor
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.)
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
}
(This post was last modified: 06-15-2011 04:12 PM by Roenlond.)
06-15-2011 04:11 PM
Find all posts by this user Quote this message in a reply
maneks Offline
Junior Member

Posts: 3
Joined: Jun 2011
Reputation: 0
Post: #3
RE: Need some help about editor
(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.)
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
06-15-2011 04:13 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)