Engine.RestartResource

From Tomb Raider Mod Launcher Wiki
Revision as of 06:54, 12 August 2014 by Jack9267 (talk | contribs) (Created page with "== Function == <syntaxhighlight lang="javascript"> function bool Engine.RestartResource(resourceName); </syntaxhighlight> === Arguments === * resourceName ** The name of th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function

function bool Engine.RestartResource(resourceName);

Arguments

  • resourceName
    • The name of the resource to restart.

Description

This function will attempt to restart the resource.

Returns

If the resource is currently stopped the function will return false.

Then the function returns if the server was able to start the resource, possible reasons could include scripts containing errors.

Notes

If the resource doesn't exist then an error is thrown.