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
A few script questions..
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#4
RE: A few script questions..

void OnStart()
{
}
void OnEnter()
{
PlayMusic("yourmusicnamehere.ogg", true, 2, 0, 10, true);
}
the first true is for looping, e.g. if the sound should loop. It should be true if you want some sort of ambient music, false if you want to use it once.
the 2 is the volume. try different out.

For question 2, is that just a "room" or a whole map where that circle is?
For question 3, you should first look at Your Computer's wake up tutorial(http://www.frictionalgames.com/forum/thread-10798.html), then look at the Engine scripts page([url]http://wiki.frictionalgames.com/hpl2/amn..._functions[/url]) and see how you could do it.
(This post was last modified: 06-21-2012, 05:35 PM by Cruzore.)
06-21-2012, 05:30 PM
Find


Messages In This Thread
A few script questions.. - by SiderealStop - 06-21-2012, 04:50 PM
RE: A few script questions.. - by Nice - 06-21-2012, 05:14 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 05:25 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 05:30 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 06:33 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 06:38 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 06:52 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 06:55 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 07:03 PM
RE: A few script questions.. - by Cruzore - 06-21-2012, 07:07 PM
RE: A few script questions.. - by SiderealStop - 06-21-2012, 07:14 PM



Users browsing this thread: 1 Guest(s)