CollectiveIndustries / StarfleetDelta

Repository for Starfleet Delta Webpage, Database, and all in world scripts
https://www.starfleetdelta.com/
GNU General Public License v3.0
2 stars 4 forks source link

[Academy] Long touch function with admin menu #35

Closed Morketh closed 8 years ago

Morketh commented 8 years ago

The podium script needs to have a Long Touch event to handle an admin menu for the instructor to change settings. For example reset, test speed, and pause.

MyNameIsKodos commented 8 years ago

default
{
    state_entry()
    {
    }
    touch_start(integer num_detected)
    {
        llResetTime();
    }
    touch_end(integer num_detected)
    {
        if (llGetTime() > 3.0);
        {
            //Do Longtouch stuff here
        }
        else
        {
            //Do normal touch stuff here
        }
    }
}