安装 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(越南语)
Українська(乌克兰语)
报告翻译问题






if ur new to scripting(try look into):
addEventHandler ["Respawn",{}] - to set the variables when the player is respawned
setVariable, getVariable - to set and get variables
while - for loop to store the player's hunger and thirst while the player is alive
sleep - for a delay in the loop so you don't freeze
Is it possible to make the player inerite the hunger and thirst to after a respawn?
So people doesnt kill themself instead of fixing food and drinks
The jerry can in this mod is one of the most practical and awesome things apart of this mod. I kept mentioning how it was funny that the jerry can, a military invention, wasn't in the army simulator game. Now we can refuel Strategically Taken Equipment to Another Location vehicles to get back on the road when we choose desolate shitholes with a single fuel pump to conduct operations in.
Commenting to ask purely out of being too lazy to test, can you refill an empty jerry can at fuel pumps? Thanks again for this mod.
and you would change this part
-----------------------
[player] call _survivalInit;
player addEventHandler ["Respawn", _survivalInit];
---------------------
into:
--------------------
params ["_playerObject"];
[_playerObject] call _survivalInit;
_playerObjectaddEventHandler ["Respawn", _survivalInit];
--------------------
then you would call it in like this:
--------------------
[yourPlayableUnit] call your_functionName;
or
[yourPlayableUnit] execVM "yourfile.sqf";
--------------------
(in config.cpp):
----------------------------------
class CfgWeapons
{
class ItemCore;
class InventoryItem_Base_F;
class YourItem_ClassSName: ItemCore
{
displayName="Canister (Fuel)";
scope = 2;
scopeArsenal = 2;
scopeCurator = 2;
class ItemInfo: InventoryItem_Base_F
{
mass=15;
allowedslots[] = {901}; // only backpack
};
simulation= "ItemMineDetector"
author="RandomGuy";
picture="\SurvivalPack\Data\Icons\icon_canisterfuel.paa";
model = "\A3\Structures_F\Items\Vessels\CanisterFuel_F.p3d";
descriptionShort="Canister (Fuel)";
customItemType = "Fuel";
};
}
----------------------------------
P.S: the mod is open source