OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Resources Beta Testing & Submission => Topic started by: schaefsky on 02 Dec 2009, 01:11:27

Title: Hull turning script for tanks
Post by: schaefsky on 02 Dec 2009, 01:11:27
## Script for Arma 2 by schaefsky
## Makes a tank turn its hull towards nearest known enemy tank
## Version: 0.1
##
## Parameters: A tank on which to execute the script
## Usage: _nil = [tankUnit] execVM "hullTurn.sqf";
##
## Commercial use prohibited!
##
## If you want to use this script or parts of it, credits would be nice.

Script uses doMove command to make the tank turn its hull.
Script included in archive and sample mission.

Comments, suggestions are welcome!