Squirrel/Client/Functions/Sounds/PlayFrontEndTrack
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 15: | Line 15: | ||
PlayFrontEndTrack(16); | PlayFrontEndTrack(16); | ||
}</code> | }</code> | ||
+ | |||
+ | == Notes == | ||
+ | |||
+ | [http://liberty-unleashed.co.uk/LUWiki/Squirrel/Client/Events/Misc/onScriptLoad onScriptLoad] was used in this example. More info about this event on the corresponding page. |
Revision as of 11:58, 27 July 2012
This functions plays a front end track based on it's ID to the local player ( client ).
Contents |
Syntax
PlayFrontEndTrack( int trackid )
Arguments
- trackid - The id of the front end track
Example
function onScriptLoad() { PlayFrontEndTrack(16); }
Notes
onScriptLoad was used in this example. More info about this event on the corresponding page.