Event - CmdUploaded by banana2
Apr 17th 2022, 6:41 AM
Adds: One command, Two inputs, One output
/cmd [command name (maximum three words)]
Run to all blocks input onCmdRun
CmdCheck - If last runned by player cmd is same for string,
activate input OnCmdCalled on current block.
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.
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.