2023-05-21: Yes, we're back. No, you can't login yet

Event - Cmd

Uploaded by banana2

The add-on board icon. Events
The add-on file name icon. Event_Cmd.zip
The add-on upload date icon. Apr 17th 2022, 10:41 AM
The add-on download count icon. 232

Description

Adds: One command, Two inputs, One output Inputs: onCmdRun onCmdCalled Command: /cmd [command name (maximum three words)] Run to all blocks input onCmdRun Output: CmdCheck - If last runned by player cmd is same for string, activate input OnCmdCalled on current block.

Example: Block has onCmdRun --> client --> chatmessage --> Example onCmdRun --> self --> CmdCheck --> Example onCmdCalled --> player --> addvelocity --> 0,0,200. Player types /cmd Test then he see message "Example". Player types /cmd Example then he see message "Example" and him object it's flying somewhere in skys.

Verison v1.0.1:

Now using brickname! Change brick's brickname to EventCmd[CmdName] and when player type /cmd [CmdName] that brick will run input OnCmdCalled! And ye, onCmdRun and CmdCheck deleted. Reason of update: When too many bricks, when somebody type /cmd] server lag as ****. Idea of update: (I dont remember nickname) When i loaded file Statue maker, /cmd start lagging After i tryed do it but 40k bricks. Is lagged like for 10 secs! He talked to me about to use Brickname.

Comments (0)