OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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!!!
-
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?
-
you could always just put a waypoint for him to "destroy" the target...?
-
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.
-
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