Script/LoadScript

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article

This is a Script function

Overview

LoadScript(filename, reload, failonerror)
Executes the script file. Any global variables and function definitions will persist for the lifetime of the script system.
return value - number 1 if successful, 0 if not
filename - string pathname of the script
reload - boolean optional - reload the script if it has already been loaded. defaults to false
failonerror - boolean optional parameter. raises CryWarning if true, defaults to true

Usage

Examples

  • common.lua
Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools