Script/ReloadScript

From Blue Mars Developer Guidebook

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

This is a Script function

Contents

Overview

ReloadScript(filename)
Executes the script file. Same as LoadScript(filename,true,false).
filename - string pathname of the script file, relative to the Game directory.

Usage

This function is used to ensure a script is loaded.

It is often used in conjunction with the utility function MakeDerivedEntity to ensure the base class is loaded.

Examples

Script.ReloadScript("Scripts/Utils/AR/ARDebug.lua");

History

  • 5/15/2009 - loading of compiled scripts now supported. See Compiling 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