
Action Button Script
- Item name
- Action Button Script
- Category
- Scripts
- Sold by
- MorganeParis
- Min. resale price
- 2
- Listed
- 3/12/2026
Description
Action Button (Click / Collision / Script Event Controller) Version 1.4 Create powerful interactive buttons in your Sansar scenes with MPP – Action Button. This flexible controller lets any object become a trigger capable of sending chat messages or firing Script Events to control other scripts. It supports both simple one-shot actions and advanced multi-state sequences, making it perfect for lights, mechanisms, scene controls, puzzles, or interactive experiences. The button can be activated by click interaction or collision, allowing use cases such as floor triggers, wall panels, control consoles, or invisible trigger volumes. To make interactions clear for users, the button can also change its material tint to visually display its current state. In single-action mode it briefly flashes a color before fading back to its original appearance. In sequence mode it shows a different color for each state. Optional sound feedback and configurable cooldown ensure clean and responsive interactions. This script integrates perfectly with other MPP systems such as LightSwitch, AvatarSpeedController, and custom Script Event logic. ________________________________________ Key Features • Click interaction or collision trigger activation • Send Nearby Chat messages or Script Events • Sequence mode with up to 4 states • Visual feedback via material tint • Optional interaction sound • Adjustable activation cooldown • Automatic event name builder • Compatible with ActionButton ScriptEvent payload • Works with any object in your scene ________________________________________ Visual Feedback System The button can visually reflect its state by tinting its materials. Two modes are supported: Single Action Mode • Button flashes a configurable color when activated • Then smoothly fades back to its original tint Sequence Mode • Each state has its own color • Up to 4 states supported • State is shared globally by the button You can tint: • all materials on the object, or • a specific material slot by name ________________________________________ Technical Details • Activation modes: Click or Collision • Event types: Chat Message or Script Event • Sequence states: 2 to 4 • Optional interaction sound • Cooldown system to prevent spam • Visual feedback via material tint • Optional material name filtering ________________________________________ Example Uses • Light switches • Scene control panels • Interactive doors • Puzzle state machines • Speed control buttons • Teleport triggers • Script debugging tools ________________________________________ Enjoy and Keep Good Vibes. Hugs from Morgane. ________________________________________