Add-Ons >> Boards >> Events >> Event - Cmd

Event - Cmd

Uploaded by banana2
Events
Event_Cmd.zip
Apr 17th 2022, 6:41 AM
112

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.

Updates

Version 1.0.1

April 19, 2022

Bugs

No bugs reported.
Download
v1.0.1
There are no comments here yet.