Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.74 KB

ExtraBlobCommandsExamples.md

File metadata and controls

38 lines (32 loc) · 1.74 KB

Extra Blob Commands

Add Script Sync 💻

Adds the target script to both server and client.

Example:

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.

Set Position 🗺

Sets the position of the blob to the param provided.

Example:

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);

Set Velocity 🎿

Sets the velocity of the blob to the param provided.

Example:

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);

Set Gravity 🌑

Sets the gravity scale of the blob to the param provided.

Example:

This makes bob have 0 gravity.

/rcon CBlob@ b = getPlayerByUsername('bob').getBlob(); CBitStream p; p.write_f32(0); b.SendCommand(b.getCommandID('SetGravity'),p); 

Need help? 😕

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.