Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19

Thread: Trivia Script

  1. #11
    Street Boss *Meister's Avatar
    Join Date
    Jun 2013
    Location
    Singapore
    Posts
    774
    How do you get them?
    I fight for equality. I fight for justice. I fight for the right thing.
    I fight therefore I am.

  2. #12
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Quote Originally Posted by The Doctor View Post

    The setTimer is used to detect if a player is sitting in a chair so that they can see the screen if they're on an iPhone, iPod Touch, or a smaller android device. It hardly takes much capacity.
    Don't place that in this class, place it separated in another class or in a level NPC.
    PHP Code:
    //#CLIENTSIDE
    function onPlayerEnters() setTimer(0.1);

    function 
    onTimeOut() {
      if (
    player.ani == "sit"
        
    setfocus(3030);
      else 
    resetfocus();
      
      
    setTimer(1);

    -Johnaudi

  3. #13
    Aye, I did that before but I don't see any purpose in putting it in another class or level NPC. It's not going to affect anything

  4. #14
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Quote Originally Posted by The Doctor View Post
    Aye, I did that before but I don't see any purpose in putting it in another class or level NPC. It's not going to affect anything
    It does, since the script runs in a single layer and doesn't support multi-threading, aka run a script at the same time.
    -Johnaudi

  5. #15
    Quote Originally Posted by John View Post
    It does, since the script runs in a single layer and doesn't support multi-threading, aka run a script at the same time.
    Well, it works, so I don't know what you're talking about. Anyway, I'll make the clientside portion in another NPC to make you happy :P

  6. #16
    Big Cheese Mrmweiss (MSM)'s Avatar
    Join Date
    Jun 2013
    Location
    New York
    Posts
    1,128
    Is this the script used in the Trivia Event on zone currently?

  7. #17
    Quote Originally Posted by Mrmweiss (MSM) View Post
    Is this the script used in the Trivia Event on zone currently?
    Probably, ya I think so.

  8. #18
    Veteran
    Join Date
    Jul 2013
    Location
    Hallandale, FL
    Posts
    159
    now i can finally understand this

  9. #19
    where do the questions appear

Tags for this Thread

Posting Permissions

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