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
b: maybe it requires the ai to be in let's say combat mode and there to be a enemie
That lua replaces AI and would fight any onboard AI for control of the vehicle.
--Assuming one mainframe with a munitions warning system connected to it
for i=0, I:GetNumberOfWarnings(0), 1 do
local warningInfo = I:GetMissileWarning(0, i)
local position = warningInfo.Position
I:LogToHud('x: ' ..position.x.. ' y: ' ..position.y.. 'z: ' ..position.z)
end
I:GetLuaControlledMissileInfo(luaTransceiverIndex,missileIndex)
whats missle index mean?
Without going into the lua block itself, you'd have to program the lua to do nothing if you turn the "AI" to OFF mode in the map.
There could be tens of missiles alive. The index is which missile you're going to get the info for.
I would assume that it's only missiles from the construct with the Lua block but I don't know. Why don't you try it with some LogToHud and find out?