Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Explanation of how it works:
Name the Tank: In the editor, name your tank under the "edit" and "variable name" fields.
Assign AI to the Turret: Place an AI inside the turret and give it a name under the "variable name" field as well.
Set the Target Location: You’ll need to provide the AI with a location to look at. To do this, place an object at a random position. Then, go into the object's properties and note down its X, Y, and Z coordinates.
Script Behavior: Once you've completed these steps, the script will rotate the turret to face the desired location, and then it will delete the AI.
the script is an sqf:
In my script:
Ps1 represents the tank.
As1 represents the AI.
As1 moveInGunner Ps1;
Ps1 engineOn false;
_targetPos = [5678.245, 1491.062, 4.433];
As1 doWatch _targetPos;
[this] spawn {
sleep 2; // Give AI time to aim
deleteVehicle As1; // Remove AI, locking turret
};