OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LeRat on 01 Jun 2006, 18:11:31
-
Hi all,
I did a search on the forum to find something on the invisible targets but i didn't find anything useful since all link are broken. So i wanted to know if someone here have a mission template who show how to use the InvTargets.pbo addon to force a chopper to shoot on the infantry in the city ?
P.S. Anyway, it's good to see OFPEC back online
-LeRat
-
if i remember correctly, the addon came with instructions ;)
choppers generally ignore targets as small as infantry. use the armoured invisible target and put it where the infantry are. the chopper will fire on it, until its rockets are gone. experiment.
-
I know that there are other scripts/demos that may be better than this one, but it was the only one that I found (looked for). And I am kind of partial to the author. ;)
Invis Target Script Demo
Just noticed that all prior attachments have disappeared.
I will post a new attachment to the above topic over the weekend and direct you to it.
Wadmann
-
if i remember correctly, the addon came with instructions
The zip file that i've only have the addon without any instructions or read me, that's why i'm asking for some help here.
I know that there are other scripts/demos that may be better than this one, but it was the only one that I found (looked for).
I'm looking exactly for something like that, a script (who'll make all the job) with a mission showing how to use it. I'll look again this weekend to see you've posted a new attachment Wadmann.
-LeRat
-
I think it's just to place the targets at the infantry, and then the chopper will fire at it when it sees the target...of course, as bedges already said, you have to use armoured target, since the chopper won't attack infantry targets...
-
Here's the invtarget readme (at least the version I got, by Lester, it says).
Should give you the info you need. Enjoy!
Wolfrug out.
[attachment deleted by admin]
-
I think it's just to place the targets at the infantry, and then the chopper will fire at it when it sees the target...of course, as bedges already said, you have to use armoured target, since the chopper won't attack infantry targets...
I always used the armoured target (tested all of them) for chopper but i never saw a chopper shoot a shot with his main gun or with his rockets. And with your way, the infantry squad will have to remain at the same position forever when i want them to move.
Here's the invtarget readme (at least the version I got, by Lester, it says).
Too bad, no attachment seem to work for now but you could post the info from the ReadMe file right here. I don't know but i could miss just a init field line and that's why it didn't want to work.
The mission template that i tried was a russian chopper shooting everyone (infantry) on the ground even if they was moving, the script was always adjusting the invisible target position over the head of the squad leader. This script was really great.
Anyway, if anyone who have the instruction or the ReadMe text or a working script, just post it here in quote. It'll help me a lot.
-LeRat
-
okay. name your invisible armoured target targ_01. init line of the infantry group leader put
inf_01 = group this
next, copy/paste the following script
;move inv target with group
#loop
targ_01 setpos getpos leader inf_01
~1
goto "loop"
save as "target_keep_up.sqs" and run using
[] exec "target_keep_up.sqs"
granted, it will keep the target at only the leader's position, and will pass on to the next loon in command when the leader dies and so on, but at least it will move with them.
as for the chopper not firing on the target, try
chopper_name reveal targ_01
-
I placed a US infanrty squad on the Malden airport with a Mi-17 flying over, all named like you said and nothing happen like always. So i simply changed the chopper speedmode to limited to see if it changed something and i saw him shoot like 64 rockets to kill everyone from the enemy squad ;D
Big thanks Bedges ;)
-LeRat
-
Although you got them working thanks to bedges, I reposted my demo in the Resource Beta Testing section.
Invis Target Demo (http://www.ofpec.com/forum/index.php?topic=19971.msg132539)
The scripts work fine but they could use some cleaning up.
Wadmann
-
Thanks Wadmann
That's exactly what i was looking for.
-LeRat