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
#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


Messages In This Thread
Need some help about editor - by maneks - 06-15-2011, 04:05 PM
RE: Need some help about editor - by Roenlond - 06-15-2011, 04:11 PM
RE: Need some help about editor - by maneks - 06-15-2011, 04:13 PM



Users browsing this thread: 2 Guest(s)