Adds the target script to both server and client.
This adds spikes.as to a player named bob.
/rcon CBlob@ b = getPlayerByUsername('bob').getBlob(); CBitStream p; p.write_string('spikes.as'); b.SendCommand(b.getCommandID('AddScriptSync'),p);
Warning! This will cause the blob to error if you provide a non-existent script name so be careful.
Sets the position of the blob to the param provided.
This teleports bob to his cursor.
/rcon CBlob@ b = getPlayerByUsername('bob').getBlob(); CBitStream p; p.write_Vec2f(b.getAimPos()); b.SendCommand(b.getCommandID('SetPosition'),p);
Sets the velocity of the blob to the param provided.
This makes bob jump very high.
/rcon CBlob@ b = getPlayerByUsername('bob').getBlob(); CBitStream p; p.write_Vec2f(Vec2f(0,-16)); b.SendCommand(b.getCommandID('SetVelocity'),p);
Sets the gravity scale of the blob to the param provided.
This makes bob have 0 gravity.
/rcon CBlob@ b = getPlayerByUsername('bob').getBlob(); CBitStream p; p.write_f32(0); b.SendCommand(b.getCommandID('SetGravity'),p);
You can contact me on discord @Zable#2593. I am in many of the King Arthur's Gold discord servers but if you have trouble finding me there you can always friend me and send me a DM.