安裝 Steam
登入
|
語言
簡體中文
日本語(日文)
한국어(韓文)
ไทย(泰文)
Български(保加利亞文)
Čeština(捷克文)
Dansk(丹麥文)
Deutsch(德文)
English(英文)
Español - España(西班牙文 - 西班牙)
Español - Latinoamérica(西班牙文 - 拉丁美洲)
Ελληνικά(希臘文)
Français(法文)
Italiano(義大利文)
Bahasa Indonesia(印尼語)
Magyar(匈牙利文)
Nederlands(荷蘭文)
Norsk(挪威文)
Polski(波蘭文)
Português(葡萄牙文 - 葡萄牙)
Português - Brasil(葡萄牙文 - 巴西)
Română(羅馬尼亞文)
Русский(俄文)
Suomi(芬蘭文)
Svenska(瑞典文)
Türkçe(土耳其文)
tiếng Việt(越南文)
Українська(烏克蘭文)
回報翻譯問題
giveGazele = function(xx, yy)
game.selectEntity(game.spawnHeli("new_gazele", xx, yy, game.getLandHeight(xx, yy), 0, "usa"))
end,
into the lua and save.
but once I type the cheat code in game, it will only spawn some random helis instead of the real gazele . However, the Ka52 can be normally spawned, though it is not exist in original game.
so, im wondering wats going on.
In the Battlefield DLC file , the gazele is named as the "new_gazele", maybe in the original game it has a different name?
I don't think i can add more texture in the base game, it will take someone whose have more experience in modding the game to add texture or add new unit's.
giveSu24B = function(xx, yy)
game.selectEntity(game.spawnPlane("su24_bombs", xx, yy, game.getLandHeight(xx, yy), 0, "usa"))
end,
tools.lua:
function addUnit(utype, uid, unum)
if ((unum == nil) or (unum < 1)) then
unum = 1
end
for count = 1, unum, 1 do
if (utype == TANK) then
game.addTankReserve(uid)
console.log("SET RESERVE >> Tank added >> ", uid)
elseif (utype == SQUAD) then
game.addSquadReserve(uid)
console.log("SET RESERVE >> Squad added >> ", uid)
elseif (utype == CAR) then
game.addCarReserve(uid)
console.log("SET RESERVE >> Car added >> ", uid)
elseif (utype == PLANE) then
game.addPlaneReserve(uid)
console.log("SET RESERVE >> Plane added >> ", uid)
elseif (utype == HELI) then
game.addHeliReserve(uid)
console.log("SET RESERVE >> Heli added >> ", uid)
else
--nonmanaged or wrong unit type
console.log("ERROR::tools.lua >> addUnit >> Nonmanaged or Wrong unit type: ", utype, ".")
end
end
end
function addPlane(uid, unum)
addUnit(PLANE, uid, unum)
end
Unfortunately It doesn't work. :(
Edit I found the way to add more CAS and actually spawn in planes. However I cannot add it on my original .lua file, it is on the main pak file, you just have to modify it on your own. Remember to create backups if you want to modify the main file.
https://drive.google.com/file/d/1cjaahNR4qn5kIopVSikEMkNx4oNDZM6O/view?usp=sharing
-----------------------------------------------
Be sure to follow the simple step of creating a "console" folder at this filepath:
C:\Program Files (x86)\Steam\steamapps\common\Syrian Warfare\basis\
-----------------------------------------------
Then drop that "utils.lua" file in that folder, file path should probably look like this:
C:\Program Files (x86)\Steam\steamapps\common\Syrian Warfare\basis\console
-----------------------------------------------
once complete, you should be able to use "Ctrl + ~" keybind to bring up the console (in-game)
type "help()" to show a list of unit codes for spawning.