PDA

View Full Version : CoD2 script error



MeGaBooM
21st April 2014, 15:02
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 ;)

serthy
21st April 2014, 15:14
http://www.opferlamm-clan.de/wbb2/thread.php?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

MeGaBooM
21st April 2014, 16:07
http://www.opferlamm-clan.de/wbb2/thread.php?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.