Results 1 to 3 of 3

Thread: CoD2 script error

  1. #1
    Private MeGaBooM's Avatar
    Join Date
    Sep 2013
    Location
    germany
    Posts
    42
    Thanks
    22
    Thanked 20 Times in 9 Posts

    CoD2 script error

    Hi,

    I need help with an error.
    I try to place a burning oillamp(idk how its called) in my map from cod2 by using misc_prefab/lamp/lantern_lit.map.
    After i compile the map and test it i get this error:

    ******* script runtime error *******
    undefined is not an array, string, or vector: (file 'maps/mp/_load.gsc', line 113)
    if (!isdefined(level._effect["lantern_light"]))
    *
    called from:
    (file 'maps/mp/_load.gsc', line 12)
    lanterns[i] thread lanterns();
    *
    called from:
    (file 'maps/mp/mp_zombiecastle.gsc', line 3)
    maps\mp\_load::main();
    *
    started from:
    (file 'maps/mp/mp_zombiecastle.gsc', line 1)
    main()
    *

    Never had this error, so idk what to do^^

    It would be great if you guys would help me

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    http://www.opferlamm-clan.de/wbb2/th...?threadid=5307
    level._effect is undefined and so it throws you the error for the entry.

    simply type level._effect = []; before you call the _load::main() routine

  3. The Following User Says Thank You to serthy For This Useful Post:

    MeGaBooM (22nd April 2014)

  4. #3
    Private MeGaBooM's Avatar
    Join Date
    Sep 2013
    Location
    germany
    Posts
    42
    Thanks
    22
    Thanked 20 Times in 9 Posts
    Quote Originally Posted by serthy View Post
    http://www.opferlamm-clan.de/wbb2/th...?threadid=5307
    level._effect is undefined and so it throws you the error for the entry.

    simply type level._effect = []; before you call the _load::main() routine
    works now, thanks.

Posting Permissions

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