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
Need some help about editor
maneks Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jun 2011
Reputation: 0
#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
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#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
maneks Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jun 2011
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)