Attached is 2 tests, one just runs a command straight out and the second calls the remote script that loads with it. The second one only works when loaded into a scene.
WARNING: Don't use a System.ThisOwner() inside the SendCommandLine, it will hard crash trueSpace.
Code: Select all
// ---------------------------------
// Advanced handlers
// ---------------------------------
function OnPostLoad(params)
{
System.SendCommandLine('System.Alert("I am a simple command run")');
}