OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Assasin on 21 Dec 2002, 11:26:34

Title: fire command!!!!
Post by: Assasin on 21 Dec 2002, 11:26:34
Im completly stump on this fire command i know how to do unitname fire ["put","pipebomb"] and unitname fire ["m203muzzle","flare"], But how can ya do it so a unit will fire a LAW or RPG. What do ya type in  ???unitname fire ["shoot","lawluancher"] ??? im not sure? help please!!!
Title: Re:fire command!!!!
Post by: micropilot on 22 Dec 2002, 09:18:33
Well, the "Correct" syntax should be unitname fire "lawlauncher" but this don't work.  I had to put this in a trigger: s3 switchmove "combatToWeapon";s3 selectweapon "lawlauncher";s3 fire "lawlauncher". Were s3 is the LAW Soldier's name.

He now fires his weapon, but shoots it straight up into the air!!  No amount of fiddling with doTarget or CommandTarget would get him to shoot at the PV3S i put out!!!

Anyone else have any ideas?
Title: Re: fire command!!!!
Post by: Jonesy1991 on 06 May 2008, 22:43:26
you could always just put a waypoint for him to "destroy" the target...?
Title: Re: fire command!!!!
Post by: Denz on 06 May 2008, 23:33:06
Ok I don't want to dampen anybodies enthusiasm (which I like btw  :good: ) but you may want to look at the date of the last post.

I don't think he needs an answer to a question he posted 6 years ago.
Title: Re: fire command!!!!
Post by: Jonesy1991 on 09 Jun 2008, 00:44:55
yeah i just thought it was worth to put something down, because if someone like me was just flicking through the forums and saw that and had the same problem then my reply might help them :) not necessarily the chap that originally posted it