Getting AI to use MG42...help
Posted: Fri Jan 24, 2003 11:10 pm
Ok I'm stumpt. I tryed a bunch of different things to get this to work but no luck (making me feel even worse...lol). Well anyway this is what I have so far.
I made a siple room(so I can Learn it first)
Put a wall 48 units high in to but he mg42 on
placed the bipod and gun in
then I read a couple of tutuarls and went with them
gave the gun a targetname/mg42
Then added a AI/german/wehrmact/soldier
Gave him key/values
targetname/mg42_gunner
target/mg42
turret/mg42
type_idle/machinegunner
type_attack/turret
And this is my script file:
exec global/loadout.scr maps/test_learn.scr
exec global/si.scr
main:
level waittill prespawn:
level waittill spawn:
$mg42 thread global/mg42_active.scr::mg42
end
Now I know that the AI is link to the gun ( arrow points to it) and when I compile the map He runs to the gun but will not shot. If I knock him off the gun he pulls his rifle out ad shoots me then(go figure...lol).
any ideas would be great thanks all.
I made a siple room(so I can Learn it first)
Put a wall 48 units high in to but he mg42 on
placed the bipod and gun in
then I read a couple of tutuarls and went with them
gave the gun a targetname/mg42
Then added a AI/german/wehrmact/soldier
Gave him key/values
targetname/mg42_gunner
target/mg42
turret/mg42
type_idle/machinegunner
type_attack/turret
And this is my script file:
exec global/loadout.scr maps/test_learn.scr
exec global/si.scr
main:
level waittill prespawn:
level waittill spawn:
$mg42 thread global/mg42_active.scr::mg42
end
Now I know that the AI is link to the gun ( arrow points to it) and when I compile the map He runs to the gun but will not shot. If I knock him off the gun he pulls his rifle out ad shoots me then(go figure...lol).
any ideas would be great thanks all.