Mg42 AI
Posted: Thu Sep 04, 2003 1:15 pm
I did the tutorial for the mg42 ai on .map
I did everything just as was told, but the mg42 guys doesn't even spawn.
Here is the error that the console comes with:
here is what i wrote in my script file:
Does someone knows what i did wrong?
I did everything just as was told, but the mg42 guys doesn't even spawn.
Here is the error that the console comes with:
if (self.spawn_left == NIL || self.spawn_left <= 0) (global/mg42_active.scr, 151)
if (self.spawn_left == NIL || self.spawn_left ^
^~^~^ Script Error: binary '<=' applied to incompatible types 'string' and 'int'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/human/human/german_winter_type2.skc' or 'models/human/human/german_winter_type2.skc'
^~^~^ TIKI_InitTiki: Couldn't load models/human/human/german_winter_type2.tik
^~^~^ Classname (null) used, but model was not a TIKI, using Object.
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/human/human/german_winter_type2.skc' or 'models/human/human/german_winter_type2.skc'
^~^~^ TIKI_InitTiki: Couldn't load models/human/human/german_winter_type2.tik
^~^~^ Classname (null) used, but model was not a TIKI, using Object.
*!*!*!* Objects are not allowed for use in the game. Make it a static model or a script model as needed.
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/human/human/german_winter_type2.skc' or 'models/human/human/german_winter_type2.skc'
^~^~^ TIKI_InitTiki: Couldn't load models/human/human/german_winter_type2.tik
^~^~^ Bad model name 'models/human/human/german_winter_type2.tik'
self.gunner = spawn self.model_gunner gun "mg42" ammo_grenade "5" origin self.spawner_gunner.origin (global/mg42_active.scr, 154)
self.gunner = ^
^~^~^ Script Error: You must specify an explicit classname for misc object tik models
self.gunner waittill death (global/mg42_active.scr, 471)
self.gunner ^
^~^~^ Script Error: command 'waittill' applied to NIL
self.gunner exec global/disable_ai.scr (global/mg42_active.scr, 177)
self.gunner ^
^~^~^ Script Error: command 'exec' applied to NIL
self.gunner exec global/runto.scr self.path_gunner (global/mg42_active.scr, 178)
self.gunner ^
^~^~^ Script Error: command 'exec' applied to NIL
self.gunner waittill movedone (global/mg42_active.scr, 179)
self.gunner ^
^~^~^ Script Error: command 'waittill' applied to NIL
self.gunner exec global/enable_ai.scr (global/mg42_active.scr, 180)
self.gunner ^
^~^~^ Script Error: command 'exec' applied to NIL
here is what i wrote in my script file:
Code: Select all
$mg42_bunker1 thread global/mg42_active.scr::mg42
$mg42_bunker2 thread global/mg42_active.scr::mg42
$mg42 thread global/mg42_active.scr::mg42
$mg42_hill thread global/mg42_active.scr::mg42