OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Ding on 25 Dec 2007, 14:45:26
-
Created this for a mission I was planning on making and thought it would make a fairly nice template for any mission editors who wanted to have an MG posistion which has the impression of being entrenched, I've tested it so the a.i. when on the machinegun do fire out of it (there can be problems with objects being in the way sometimes). the height of the M2 and some of the walls may have to be changed depending on the ground elevation.
(http://img295.imageshack.us/img295/4627/mgnestrf6.jpg)
OFPEC Download (http://www.ofpec.com/ed_depot/index.php?action=details&id=602)
-
hey Ding,
I gave this a try, looks pretty cool, but one thing might need tweaking: Apparently the AI cannot "see" the machine gun nest at all even under fire. I put a couple opposition squads in and the machine gunner massacred them all without a shot back in his direction. Tank couldn't "see" it either. Maybe an event handler "FIRED" that reveals the MG nest?
Lee
-
did you do a setpos on the mg? as you set up the config of the compound ?!?! only thing i can think that might be wrong :dunno: the mg will stand in air,,,,, i do think!!!! in arma.
schuler
-
hm I didn't have that problem, the ai seemed to just shoot the gunner, maybe the mg is to low in the ground as I think I lowered it a few inches after I tested it last time.
-
as staff ive just got arma .but ive tested setpos on roofs and buildings and seen mg set one meter above the roof,, , so i dont know ,,,, bugs yet :dunno: ,,, funny ,,,, just playing around will get you somewhere
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +0.1] i dont know, iam into ofp as staff,,,,, someone will come allong shortly and help ya mate ;) good thing to point out thought :good:
edit
depending on the ground elevation.
i am not sure but most objects fall, "ground level then you can do a setpos on them, some dont,,,, like you can place a pallet 1meter in the air , it stays there,,
Edit sorry the above is wrong for setpos , onless it is on some obj, this is the right setpos for one uint only
this setpos [(GetPos this select 0),(GetPos this select 1),+.0.2]
this well be above ground change the +0.2 to what you like,,, some times its testing over and over :blink: watch is a bum pain :D
-
did anyone else have the problem i had?
-
I think the problem happens because the MG is, in fact, underground (-1m) and AI cannot see below ground level.