OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: KingBuffalo on 20 Mar 2005, 19:25:10

Title: Disable tank lock-on
Post by: KingBuffalo on 20 Mar 2005, 19:25:10
Is there a way in MP with a script, trigger, etc. to not allow players in a tank (gunner or commander)  to right-click and lock on to a target?
Title: Re:Disable tank lock-on
Post by: Terox on 20 Mar 2005, 22:00:42
the attribute that allows a tank, aircraft to be locked onto is declared in the config, there is no way of using a script or trigger to change these attributes, but you could use

setcaptive true crew vehiclename

that may work, havent tried it
Title: Re:Disable tank lock-on
Post by: Speeder on 20 Apr 2005, 10:33:50
you would still be able to rightclick on the unit and get a target, the setCaptive only prevents that you can find the target by Cycling your targets on Tab