Page 1 of 1
2 Questions
Posted: Tue Mar 25, 2003 8:49 pm
by Personator
I finally got an MG to work, but now i've run into 2 new problems. First, how can you have more than 1 MG in a map? I made a second one named MG42b with an equivalent scr line, but it won't fire. The other problem is getting Squad members to follow me. I know it involves the script, but i dont know how. Any help?
Posted: Tue Mar 25, 2003 8:50 pm
by Butch
if you look in the level scripts for the game it might help with the squad problem
Posted: Tue Mar 25, 2003 9:01 pm
by Yarik
I think there are two kinds of Mg42's. A fake one which doesnt fire and one that does.
Posted: Tue Mar 25, 2003 9:18 pm
by Butch
yeah the one called 'mg42-fake' is fake
Posted: Wed Mar 26, 2003 12:16 am
by Personator
None of them are fake. One is MG42 and the other is MG42b. Neither has fakebullets checked.
Posted: Wed Mar 26, 2003 3:11 am
by bdbodger
to use friendlies you need to do a few things in your map and script
if you open pak0.pk3 in mohaa or pak1.pk3 in spearhead and go to the global directory and open the frienldy.scr it lets you know at the top of the script how to setup friendlies . basicaly it is this . You make some friendly ai's give them a targetname of friendly. give the first one a key of #fnum and a value 1 . the second one a key of #fnum and a value 2 etc each one a different fnum .
in the script at the top
exec global/friendly.scr
farther down when you want to start the friendy behavour
for (local.i=1;local.i < $friendly.size+1 ;local.i++)
{
if (isalive $friendly[local.i] )
{
$friendly[local.i] thread global/friendly.scr::friendlythink
$friendly[local.i].friendtype = 0 // Offset Behavior
$friendly[local.i].mins = 30
$friendly[local.i].maxs = 60
}
}
and later
level.friendly1.friendtype = 1 // type 1 Barney Behavior
you can use level.friendly1 that is a $friendly with #fnum 1
there is more to it you need to setup pathnodes for certain types of behavour I suggest you read the friendly script