OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wildebeest on 10 Feb 2004, 09:41:41

Title: Grenades at tanks?
Post by: Wildebeest on 10 Feb 2004, 09:41:41
Hi, is there a way of making AI guys throw handgrenades at tanks? I'm working on a WWII mission CC3 style and I would like them to throw nades at the light tanks.

Thanks you're the best   8)
Title: Re:Grenades at tanks?
Post by: OperatorBurn on 10 Feb 2004, 14:02:08
Well the easiest way, off the top of my head, would be to remove all the AI's weapons (just the guys you want chuckin' grenades), fill em up w/grenades and then have them dotarget and dofire.

To have them attack using grenades only, when they have other weapons, I'm not sure how you would do that. I don't know if you can specify what weapon you want the AI to use as they are pretty flaky with that stuff.

 ;D
Title: Re:Grenades at tanks?
Post by: Djoker on 10 Feb 2004, 17:06:26
commmand is:

soldier fire ["throw","grenade"]

Try it! :D
Title: Re:Grenades at tanks?
Post by: Wildebeest on 10 Feb 2004, 17:18:41
Thanks for your replies.

But           soldier fire ["throw","grenade"]        or this fire ["throw","handgrenade"]  didn't work  :P
Title: Re:Grenades at tanks?
Post by: Djoker on 10 Feb 2004, 17:20:23
sorry wrong command.
it's soldier fire "handgrenade"
leave the "[" and "]"
Title: Re:Grenades at tanks?
Post by: General Barron on 11 Feb 2004, 08:26:51
try "grenadehand" instead of "handgrenade". I think that'll work....
Title: Re:Grenades at tanks?
Post by: Wildebeest on 11 Feb 2004, 08:47:17
Hmm, you guys making fun of me?  ::) ;)
Title: Re:Grenades at tanks?
Post by: General Barron on 11 Feb 2004, 08:52:35
No, the ammo name for a hand grenade is "grenadehand". If you want to camcreate a hand grenade, you have to write: camcreate "grenadehand" pos

I'm not sure, but if you are having troubles, you should try that.
Title: Re:Grenades at tanks?
Post by: Marvin on 11 Feb 2004, 12:56:58
Better look at magazine listing in comannd references! Better look!
 ;)