OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Falcon988 on 01 Nov 2003, 22:33:50
-
Ahem. ;D
How do you make it so your troops do not leave their vehicles no matter -what- unless it's destroyed? I want my Humvee's and M113 to drive right past whoever may be shooting at them. Run over the enemy if they have to. I'm noticing an annoying tendency to disembark as soon as they make contact and thereby get shot to ribbons.
-
make a WP to somewhere
set the "combat Mode" in that WP to NEVER FIRE and the behaviour to CARELESS.
and if a group is in back, use
"_x action [""getin"", m113Name]" foreach units GrpName; "[_x] orderGetin True" foreach units GrpName
:-* there! that should keep 'em stuffed
-
Well, the thing is I want the Humvee machine gunners to shoot back. So long as the Humvee itself doesn't stop.
-
Whether or not a vehicle stops when under fire to let troops out is coded into the vehicles config.cpp :P
don't know if you can find a way to get around that
-
Nuts. ;D
Of course I can just always have the player assume command of the convoy. That way it'll be up to him whether or not his guys get out.
-
Yeah, when I ran into this doing a cutscene for LCD I just removed all cargo from the M113's and then moved them back in at the correct time.
If you're doing this in a MP game though, not too sure how you'd get around it. (maybe you could have a cutscene while the player is removed from the HMMW, showing the battle from a good angle?)
Good luck 8)
Asmo