Mine Turtle
Senior Member
Posts: 655
Joined: Mar 2011
Reputation: 28
|
|
| 12-05-2011 08:04 PM |
|
GreyFox
Member
Posts: 162
Joined: Jul 2011
Reputation: 2
|
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 |
|
Urakozachok
Junior Member
Posts: 12
Joined: Nov 2011
Reputation: 0
|
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 |
|