Author Topic: Adding bricks to the current game  (Read 3623 times)

You could do something like
%path = "add-ons/script_blah/folder/*.cs";
for(%f = findfirstfile(%path); isfile(%f); %f = findnextfile(%path))
    exec(%f);

You could do something like
%path = "add-ons/script_blah/folder/*.cs";
for(%f = findfirstfile(%path); isfile(%f); %f = findnextfile(%path))
    exec(%f);

No. If it's not going to be in a function then it should use a global variable. Especially if it's using a for statement.

$path = "Add-Ons/Script_Blah";

for($file = findFirstFile($path @ "/*.cs"); isFile($file); $file = findNextFile($path @ "/*.cs"))
{
   exec($file);
}

deleteVariables("$path");
deleteVariables("$file");

Because i'm transferring the content from the server to the client I don't think that will be a problem.
And how are you even doing this?

No. If it's not going to be in a function then it should use a global variable. Especially if it's using a for statement.
I expected him to run that in a function, but yeah.

And how are you even doing this?
Not at all.


No. If it's not going to be in a function then it should use a global variable. Especially if it's using a for statement.

$path = "Add-Ons/Script_Blah";

for($file = findFirstFile($path @ "/*.cs"); isFile($file); $file = findNextFile($path @ "/*.cs"))
{
   exec($file);
}

deleteVariables("$path");
deleteVariables("$file");


Just wrap it in a function call.

You could do something like
%path = "add-ons/script_blah/folder/*.cs";
for(%f = findfirstfile(%path); isfile(%f); %f = findnextfile(%path))
    exec(%f);


What if one of those files needs to use the file search functions?


faulty thoughts are faulty
You do realize you can't re-transmit content to existing clients? Blob downloading is handled by the engine, and only one time, when you join.

I do not remember the command that updates events.
the serverCmd is requestEventTables