Results 1 to 2 of 2

Thread: trigger

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    trigger

    Hi guys, i need help.
    If you use a trigger
    trig waittill("trigger"); so now come the function.
    now you must press again, so again
    trig waittill("trigger"); BUT now not a another guy can press
    JUST the second can press it , who have press the first.

    what i do?

  2. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    I'm not sure what you mean but the easiest way to make a trigger is:

    Code:
    trigger()
    {
            trig = self;
    	for(;;)
    	{
    		trig waittill("trigger", player);
    
    		player iprintlnbold("trigger!");
    		wait 1;
    	}
    }
    Last edited by Jeplaa; 9th January 2013 at 14:57.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •