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
Scripting help
Author Message
Mine Turtle Offline
Senior Member

Posts: 655
Joined: Mar 2011
Reputation: 28
Post: #11
RE: Scripting help
12-05-2011 08:04 PM
Find all posts by this user Quote this message in a reply
GreyFox Offline
Member

Posts: 162
Joined: Jul 2011
Reputation: 2
Post: #12
RE: Scripting help
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

That part goes in your script, the rest

Plays music.
asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc

Is so you know what each thing means.

Example:

PlayMusic("02_amb_safe.ogg", true, 1, 0, 0);


-Grey Fox

Current Project
Forgotten
12-05-2011 09:17 PM
Find all posts by this user Quote this message in a reply
Urakozachok Offline
Junior Member

Posts: 12
Joined: Nov 2011
Reputation: 0
Post: #13
RE: Scripting help
Tell us who else, please use a ready example script AddPropImpulse. I would be very grateful.
12-28-2011 10:33 AM
Find all posts by this user Quote this message in a reply
Post Reply 




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