OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LeRat on 01 Jun 2006, 18:11:31

Title: How to use the InvTargets ?
Post 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
Title: Re: How to use the InvTargets ?
Post by: bedges on 01 Jun 2006, 18:31:18
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.
Title: Re: How to use the InvTargets ?
Post by: Wadmann on 01 Jun 2006, 22:44:14
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
Title: Re: How to use the InvTargets ?
Post by: LeRat on 02 Jun 2006, 00:39:04
Quote
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.

Quote
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
Title: Re: How to use the InvTargets ?
Post by: Garcia on 02 Jun 2006, 13:49:54
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...
Title: Re: How to use the InvTargets ?
Post by: Wolfrug on 02 Jun 2006, 14:09:08
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]
Title: Re: How to use the InvTargets ?
Post by: LeRat on 02 Jun 2006, 20:48:22
Quote
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.

Quote
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
Title: Re: How to use the InvTargets ?
Post by: bedges on 02 Jun 2006, 21:13:54
okay. name your invisible armoured target targ_01. init line of the infantry group leader put

Code: [Select]
inf_01 = group this
next, copy/paste the following script


Code: [Select]
;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

Code: [Select]
chopper_name reveal targ_01
Title: Re: How to use the InvTargets ?
Post by: LeRat on 02 Jun 2006, 21:46:10
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
Title: Re: How to use the InvTargets ?
Post by: Wadmann on 03 Jun 2006, 06:59:54
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
Title: Re: How to use the InvTargets ?
Post by: LeRat on 03 Jun 2006, 19:00:12
Thanks Wadmann

That's exactly what i was looking for.

-LeRat