Poll

How should it be layed out?

Name - commands they suggested
30 (76.9%)
no names, just commands
9 (23.1%)

Total Members Voted: 39

Author Topic: Console Command List  (Read 72739 times)



serverconnection.chasecam(desired value);

Freezes your cam for third person


yeah chasecam delays camera movement the specified number of milliseconds

so you can freeze it if you set it to a really high value but otherwise it'll just do a cool little chasey thing

messageAll('MsgAdminForce', "<div:1><just:right>" @ "Whoa, hey guys!");
« Last Edit: April 04, 2015, 11:56:48 AM by Honno »

does <just:> even work in chat

i don't think so, i've tried before, but it might outside of events

Ive seen it work before whenever someone forgets to parse their markup text.

bump, added latest commands

inspect( Object ID );

Opens a GUI to view properties of an object. Ex: Entering a Brick ID you conveniently see things like it's position, rotation, scale, colorID, dataBlock and can see, modify and remove Dynamic Classes that can be added like so:  %brick.thisDynamicClassDoesNothingByItself = "string"; that can be checked upon. ex: echo(%brick.thisDynamicClassDoesNothingByItself);  It proved to be very useful to me.

inspect( Object ID );

Opens a GUI to view properties of an object. Ex: Entering a Brick ID you conveniently see things like it's position, rotation, scale, colorID, dataBlock and can see, modify and remove Dynamic Classes that can be added like so:  %brick.thisDynamicClassDoesNothingByItself = "string"; that can be checked upon. ex: echo(%brick.thisDynamicClassDoesNothingByItself);  It proved to be very useful to me.
related: tree();

p much the same thing but it has a list of all objects alongside it as in the GUI or mission editor

while(%x < 21){warn(mPow(%x,2));%x++;} lists the first 20 terms of x^2

Both
while(true){} - Crashes the game.

Both
for(%i = 0; %i < 200000; %i++){} or while(%i < 200000){%i++;}  - Creates artificial lag. Time can depend on how fast your CPU is with the game.

Server
findClientByName("<>") - Gets the client's object ID, you can also do .player to get their player object if it exists.
  -> Goes with any GameConnection functions, which can also be found by findClientByName("name").dump();

Both
crash(); - I think we all know what this does.

setFOV ("??? ??? ???");
replace the ??? with numbers