OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: armymanbronson on 20 Aug 2002, 18:09:19

Title: target at the shooting range
Post by: armymanbronson on 20 Aug 2002, 18:09:19
hey gang wondering, how do you get a unit to fire at the object "target E" ?. cause i want to do a training mission but  the ai wont fire at it. i have tried man1 dotarget target ect but nothing happens. but what would be handy if someone could tell me how to get a unit to fire his weapon continuesly non stop. i have tried man dofire ["m16", "m16"] ect what ever, it wont even work. im running resistance too maybe there is a different command? oh one more thing i have downloaded units and the hand gun doesnt appear on all of them, like you can fire it ect but you dont see the gun in your hand. wondering if anyone can help me with all of this. thanks
brons.
Title: Re:target at the shooting range
Post by: seanver on 20 Aug 2002, 18:18:22
I had the same problem and I asked that here and it looks like there's no way to do that. The AI won't fire at them.  >:(
Title: Re:target at the shooting range
Post by: SimonRussi on 20 Aug 2002, 18:22:17
its the same for me.
I used the command

man1 dotarget target
man1 Fire "Weapon"

Guess what? They aim the target then they shoot aiming the sky...... funny huh?
Title: Re:target at the shooting range
Post by: KTottE on 20 Aug 2002, 18:26:47
Use DoFire instead of DoTarget

This is straight from the comref.
Quote
doFire target
Operand types:
    target: Object
Type of returned value:
    None
Description:
    Order unit do commence fire on given target (silent). If target is objNull, commence fire to current target (set using dotarget or commandtarget).

Example:
    soldierOne doFire objNull
Title: Re:target at the shooting range
Post by: seanver on 20 Aug 2002, 18:27:38
They shoot the sky because they calculate the ballistic trajectory of the bullet, like a mortar, so the bullet fall and hit the target.
Title: Re:target at the shooting range
Post by: seanver on 20 Aug 2002, 18:29:17
Quote
Use DoFire instead of DoTarget

That doesn't work either
Title: Re:target at the shooting range
Post by: SimonRussi on 20 Aug 2002, 18:36:47
that doesn't work KTottE

SeAnVeR:
hope you were joking about the ballistic trajectory of the bullets... :)

somebody suggested me to try to put a GameLogic near the target and make the shooters fire at that instead of the target itself...
Title: Re:target at the shooting range
Post by: seanver on 20 Aug 2002, 18:41:10
Yes, I was joking, they just shoot aiming at a  UFO...  :gunman:

I'm not sure but I think that they don't shoot the gamelogics either......
Title: Re:target at the shooting range
Post by: KTottE on 20 Aug 2002, 18:42:17
Dang, and I'm supposed to know these things ;-)
Anyway, the game logic thing sounds like an ok idea to me. Try that, and see if it works to your liking.
Title: Re:target at the shooting range
Post by: icarus_uk on 20 Aug 2002, 18:45:56
No no no, AI never has targeted a gamelogic, its invisible so they cant see it.  I did have an idea of hacking the SQM and making an evil telephone that could be placed behind the target,  maybe someone should try that.
Title: Re:target at the shooting range
Post by: T.S.C.Plage on 20 Aug 2002, 20:01:44
Have you tried that "KnowsAbout" stuff and...

man1 Action ["weapon","M16"]
man1 doTarget target
man1 doFire target

...or changed the sides of the targets in the mission.sqm?

That works for tanks (they're targeting anything you want!).

Greetz
Plage

Title: Re:target at the shooting range
Post by: Black_Feather on 20 Aug 2002, 20:31:42
 ??? try putting a destroy waypoint on the target
Title: Re:target at the shooting range
Post by: Artak on 20 Aug 2002, 20:38:33
Instead of using objects use live Russian soldiers. Remove their weapons and put this disableai "move" into their init fields.  :P
Title: Re:target at the shooting range
Post by: T.S.C.Plage on 20 Aug 2002, 21:45:37
HARHARHAR...

Is that the Finnish way of a shooting range? Then it's no wonder that your country has more rendeers than humans! ;D
Title: Re:target at the shooting range
Post by: Wolf on 20 Aug 2002, 22:17:46
LOL
Is this for a cutscene, or actual in mission, you currently playing kinda thing?
If its a cutscene I know what you can do.
Title: Re:target at the shooting range
Post by: Tomb on 21 Aug 2002, 10:14:27


[This Attachment has been Deleted By Routine Maintenance]
Title: Re:target at the shooting range
Post by: armymanbronson on 21 Aug 2002, 16:01:59

Thanks heaps everyone for helping me with that problem ill give it a go, just a not its for my black hawk down campaign. i decieded i know enough aBOUT EDING TO MAKE A HALF DECENT CAMPAIGN.
CHHERS.
BRONSON
Title: Re:target at the shooting range
Post by: Navy_Seals on 21 Aug 2002, 16:25:01
Instead of using objects use live Russian soldiers. Remove their weapons and put this disableai "move" into their init fields.  :P

What Artak actually suggested is possible and works, and i think that u can try using barrels as well. U put them behind the target and then make the d00des shoot it.


:afro:

 Howdy, lazzy! :D Welcome to the (clean & new) sewers of editing 8)

Ay, mylordship, the dayum "TARGETe" can be a real buttpain from time to time

 ::)  Oul Tomby mate is back again  ;D Looks like u still haven't forgoten that humour of urs  8) Hehe, yeah this will fix that stupid "clax wagon"  

oh my.... where r my maners  :P
Anyways Welcome to the new forums and new life champs    :thumbsup: it's party time :beat: :cheers: