Community Library > Builder Helper Chat
Download Model (MiceOnABeam v1.0.2)
-
Build Helper Chat
Modified BuildHelper script to support chat commands to change the color and size of a prim. The built-in ChatCommands component model was used for this.
USAGE:
// 99 command command_parms
Processes the following commands.
- color aColor: Set the color of the prim to aColor.
- size x,y,z: Set the size of the prim to the dimensions x, y & z.
- help: Provide help on the commands supported. -
Processing Chat Commands
A listen filter is set up to listen for chat in the pChatCommands state.
Then the listen event occurs as a result of someone chatting on the configured channel (default: 99), the chat text is parsed and split into a list containing the command and it's parameters.
Each command is then processed through the use of a Choice Point and it's outgoing transition, each of whose Guard Conditions detect a different command.
