Results 1 to 4 of 4

Thread: Undefinied is not an object: trig waittill ("trigger"); ? Error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private ElEmEnT's Avatar
    Join Date
    Aug 2013
    Posts
    22
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Question Undefinied is not an object: trig waittill ("trigger"); ? Error

    Hey Community,
    i need help. I got an error on this sript. I map only about 3 days,
    so i dont have very much experience in scripting.

    Code:
    main()
    {
    thread jaildoor();
    thread jailkillr();
    thread jailkilll();
    }
    
    jaildoor()
    
    {
    jaildoor = getent("jaildoor","targetname");
    trig = getent("jaildoor_trigger","targetname");
    while(1)
    {
    trig waittill ("trigger");
    jaildoor movez (-104,7,3,3);
    jaildoor waittill ("movedone");
    wait(3);
    jaildoor movez (104,7,3,3);
    jaildoor waittill ("movedone");
    }
    }
    
    jailkillr()
    
    {
    jailkillr = getent("jailkillr","targetname");
    trig = getent("jailkillr_trigger","targetname");
    while(1)
    {
    trig waittill ("trigger");
    jailkillr movey (97,7,3,3);
    jailkillr waittill ("movedone");
    wait(3);
    jailkillr movey (-97,7,3,3);
    jailkillr waittill ("movedone");
    }
    }
    
    jailkilll()
    
    {
    jailkilll = getent("jailkilll","targetname");
    trig = getent("jailkilll_trigger","targetname");
    while(1)
    {
    trig waittill ("trigger");
    jailkilll movez (-97,7,3,3);
    jailkilll waittill ("movedone");
    wait(3);
    jailkilll movez (97,7,3,3);
    jailkilll waittill ("movedone");
    }
    }
    And the error is.

    ******* script runtime error *******
    undefined is not an object: (file 'maps/mp/jaildoor.gsc', line 31)
    trig waittill ("trigger");
    *
    called from:
    (file 'maps/mp/jaildoor.gsc', line 4)
    thread jailkillr();
    *
    called from:
    (file 'maps/mp/mp_firstmap.gsc', line 28)
    maps\mp\jaildoor::main();
    *
    started from:
    (file 'maps/mp/mp_firstmap.gsc', line 1)
    main()
    *
    ************************************
    writing to: F:\Games\Activision\Call of duty 2\servercache.dat
    Error during initialization:
    script runtime error
    (see console for details)
    (file 'maps/mp/mp_firstmap.gsc', line 1)
    Last edited by ElEmEnT; 27th August 2013 at 18:24. Reason: rechtschriebfehler

Posting Permissions

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