Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doText()
- {
- wait 1;
- displayText = createFontString( "hudsmall", 5.0 );
- displayText setPoint( "CENTER", "TOP", 0, -0 );
- level thread DestroyOnDeath(displayText);
- iPrintlnBold( self.name + "is The Traffic Light" );
- while( 1 )
- {
- self notifyOnPlayerCommand("N", "+actionslot 1");
- self waittill("N");
- displayText setText("^2•");
- wait 1.15;
- self notifyOnPlayerCommand("N", "+actionslot 1");
- self waittill("N");
- displayText setText("^3•");
- wait 1.15;
- self notifyOnPlayerCommand("N", "+actionslot 1");
- self waittill("N");
- displayText setText("^1•");
- level thread initCheck();
- wait 1.15;
- }
- }
- initCheck()
- {
- self endon( "death" );
- self endon( "disconnect" );
- self endon( "obeyed" );
- wait .25;
- currLoc = self getOrigin();
- wait .05;
- if(self getOrigin() != currLoc)
- {
- self suicide();
- }
- else
- {
- self notify( "obeyed" );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement