OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DC10_starvinmarvin on 14 Jul 2003, 15:19:27

Title: My soldier wont stay in the MG.
Post by: DC10_starvinmarvin on 14 Jul 2003, 15:19:27
HI guys! i placed an MG42 in a bunker.. wow ;) well when the soldier manning the MG is dead another will take his place after 10 sec using "newsoldier moveingunner gun" the problem is that as soon as the new guy gets placed on the MG he jumps out again. why!!!??? is there any way to solve this?

and another thing.. this is a ww2 omaha beach like mission and those stupid gunners doesnt fire at the boats untill the landed soldiers are fireing at them.. is there anyway to make em fire sooner??

btw. i found out that if you set the fuellevel on the boats to 0 using trigger they will go exactly straight and to the beach position that you want em too i know this has been a problem for lots of omaha beach mission makers. but just make em loose the fuel around 8 sec after they started then they wont turn and slow down to a more realistic speed too ;)  

LCD i hope you are online soon. you seems to be the guru around here :P

greetz // StarvinMarvin
Title: Re:My soldier wont stay in the MG.
Post by: macguba on 14 Jul 2003, 15:40:17
The new gunner is probably getting orders from his group leader.    Use

[newGunner] join grpNull

to make him his own group.

Try using doTarget and doFire to get the gunners to fire at the boats.
Title: Re:My soldier wont stay in the MG.
Post by: DC10_starvinmarvin on 14 Jul 2003, 15:51:22
Hi! thanks for the help. but the problem is that the newgunner is in his own group already.. i just placed him as a single unit.

the dotarget and dofire will surely work but then i guess the MG42 will fire at the boats untill they are destroyed and that will give the soldiers enough time for a teaparty right?
;)

Greetz // StarvinMarvin
Title: Re:My soldier wont stay in the MG.
Post by: macguba on 14 Jul 2003, 16:55:02
Hmm ..... I assume the loon has no waypoints that could be confusing things?     Try making him a group leader with you the player as the only other unit in the group.    That way you might get a clue as to why he is jumping out.

Try targeting a soldier in the boat.  
Title: Re:My soldier wont stay in the MG.
Post by: DC10_starvinmarvin on 14 Jul 2003, 16:58:11
Thanks alot dude! this will be helpfull!

do you have any idea about my second problem.. in the other post.. "d**n stupid AI"
Title: Re:My soldier wont stay in the MG.
Post by: Tomb on 14 Jul 2003, 21:08:54

...I placed an MG42 in a bunker...the problem is that as soon as the new guy gets placed
on the MG he jumps out again. why!!!??? is there any way to solve this?

greetz // StarvinMarvin


 :) Name the gun "MG", and try this code instead, m8

condition:
                    !alive MGg

activation:
                    dude assignAsGunner MG; [dude] orderGetIn true :thumbsup:


Just place the moron (the guy named "dude") in the bunker, next to the mGun - grouped to none!  ;)

Title: Re:My soldier wont stay in the MG.
Post by: DC10_starvinmarvin on 14 Jul 2003, 22:17:54
thanks alot for your help m8! This works perfectly!!

Cheers // Marvin
Title: Re:My soldier wont stay in the MG.
Post by: _hammy_ on 14 Jul 2003, 23:31:17
solve topic then??

i guess....
Title: Re:My soldier wont stay in the MG.
Post by: DC10_starvinmarvin on 15 Jul 2003, 00:04:51
yup
solved

thanks alot to all
Title: Re:My soldier wont stay in the MG.
Post by: Artak on 15 Jul 2003, 00:08:01
LoL  ;D

No, he ment 'push the little solve button' to 'solve' the topic. To mark it as solved so everyone will know  ;)
Title: Re:My soldier wont stay in the MG.
Post by: DC10_starvinmarvin on 15 Jul 2003, 00:14:00
well not really solved. the replacement dude is always shot when he is standing close to the MG the guy is also getting into the MG to fast. its better if i can teleport him into place from a distant location so that he will not get killed before he is used as gunner....   if there is no solve at this i must use only one gunner per mg and maybe add another mg
 ???
Title: Re:My soldier wont stay in the MG.
Post by: Sui on 15 Jul 2003, 03:16:20
Or... if you want to get rid of all the scripts, activation lines, ordergetin commands etc....

All you need to do is group a couple of soldiers with the MG. They will then act as replacement gunners when the original gunner is killed. No scripting (or assigning/ordering) required ;)
Title: Re:My soldier wont stay in the MG.
Post by: DC10_starvinmarvin on 15 Jul 2003, 10:19:03
Oh that simple ;) well ill try that then! im not sure how they will act while inside a bunker thou..  they used to move like fools while inside but if this won work ill use the last option with assignascargo actions and just hide the poor guy somewhere in the bunker. i guess that will do. Thanks to all of you for your help!

Greeeetz!

Marvin ;D