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
eg: I create a bunch of custom turret that are aimed for bombardment of targets below my ship (did somebody asked an exterminatus?) and I want all of them to shoot at the same time at the same place.
do i have to edit some variables inside the addon script to make it work?
I don't want to use a normal turret that fires unnecessary ammo (could it confuse WC with its own trajectory and speed?) that only "designates" a target while firing. There were a few nice ones around before WC but none compatible, how is it now?
matters.
To your problem: Simply put, IMyLargeTurretBase.HasTarget and IMyLargeTurretBase.ApplyAction("ShootOnce") both don't work with WC weapons, the first because that property doesn't exist the second because the action doesn't exist for these blocks. As replacement you have to add WcPbApi.GetWeaponTarget and null check it for the first one. For the second you'd add WcPbApi.ToggleWeaponFire or WcPbApi.FireWeaponOnce and call those. You can defnitely tell Alysius about my guide linked above. Because of how the API works I doupt though that he'll be able to fit it into his script. (With all blank spaces it's about 9k characters)
DDS's primary means of receiving target data is through the DDS Designators turret group, and it just doesn't work at all on even the WC vanilla replacement. It looks like there may be the 2nd challenge of firing those WC weapons that are on the turret too.
Also the turret script was my work of the last three days, so it was already almost finished when you came in with your request. As it's quite easy to do that once you wrap your head around the API, I don't deserve these kind words, I'll take them, but I don't deserve them. ;P