Squirrel/Client/Functions/Sounds/PlayFrontEndTrack

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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

  1. PlayFrontEndTrack( int trackid )

Arguments

  • trackid - The id of the front end track

Example

  1. function onScriptLoad()
  2. {
  3. PlayFrontEndTrack(16);
  4. }

Notes

onScriptLoad was used in this example. More info about this event on the corresponding page.

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox