Scripting/Squirrel/Client Functions/Script::LoadScript

From Vice City Multiplayer
Revision as of 05:27, 12 July 2016 by Xmair (talk | contribs) (Created page with "This function loads a file. == Syntax == <pre>Script::LoadScript( FileName ) </pre> == Arguments == * '''STRING''' '''FileName''' This is the name of the file, must be a s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function loads a file.

Syntax

Script::LoadScript( FileName ) 

Arguments

  • STRING FileName This is the name of the file, must be a string.

Example

This will load the file named 'test.nut'.

function Script::ScriptLoad( ) {

LoadScript( "test.nut" );

}

Notes

The event Script::ScriptLoad was used in in this example. More info about them in the corresponding pages.