bong oh
Member-
Content Count
32 -
Joined
-
Last visited
-
Medals
Everything posted by bong oh
-
How to apply different respawn times for different side?
bong oh posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I wanted the Bluefor team to have 2 minutes of respawn time and the CSAT team to have 30 seconds. However, I looked up most of the documents about respawnDelay, but I couldn't find any part of that... May I ask how you can solve this problem? -
How to apply different respawn times for different side?
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
yup. And It still doesn't apply separately, and respawn times setting in the game are applied... I trying to find out why the sqf file settings are not applied. -
How to apply different respawn times for different side?
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm sorry for the late reply. Even if I apply the script, respawn time in the game(in multiplayer menu) is applied first in multiplayer -
How to apply different respawn times for different side?
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Oh.. I'm sorry. I misunderstood that the purpose of your URL link was to confirm what I emphasized that phase in ARMA wiki. And, I thought the purpose was to show that the functions I said are not provided at all in the game. I try to that in MP mission. and want applied that each side. -
How to apply different respawn times for different side?
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
https://community.bistudio.com/wiki/setPlayerRespawnTime Sets the time interval (in seconds) that the player must wait before respawn. It resets to mission default on mission start." In Single Player or when respawn type is GROUP or SIDE in Multiplayer, setting player respawn time has no effect, and playerRespawnTime will always return -1." so... no way to change that? -
battlefield [MP/SP][COOP] IFA3-AIO (1-12)Territory fight: Mission Boston v2.15
bong oh replied to RafaDombras's topic in ARMA 3 - USER MISSIONS
Which list should I modify to change or add to the list of cars and weapons? For example, I want to get weapons and vehicles through radio objects and ammunition boxes. I'd like to add mortar and mortar ammunition (ACE mode only) and buy them separately.- 17 replies
-
- 1
-
[Release] Simple Weapon Shop System
bong oh replied to hoverguy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Is there still a bug in loadout save/load function? My equipment does not load after dies and returns to the initial loadout.(I used 11/7 version) -
[Release] Simple Weapon Shop System
bong oh replied to hoverguy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Can I ask how modify initial costume and weapon? Basically it starts with nato's outfit, can this be changed according to the faction? and another problem is when I buy and spawn vehicle, I can't get in. -
Saving Gear When go out Trigger Location.
bong oh posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
My mission flow 1. First Respawn to Custom Loadout to set editor 2. buy the weapon, gear from box. 3. When go out from base, equipment saved(just assigned item /(not ammo, medkit etc.. ) 4. and when respawn, start to gear saved So, my first step is making trigger west/not present/repeat/ on Condition _unit = _this select 0; [_unit, [_unit, "assignedItem"]] call BIS_fnc_saveInventory; and make onPlayerRespawn.sqf _unit = _this select 0; [_unit, [_unit, "SavedInventory"]] call BIS_fnc_loadInventory; yup..I was expecting that this would not work. I have no idea how to import and store each player's assignedItem with the trigger. Can anyone tell me about this mechanism? -
Saving Gear When go out Trigger Location.
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
here is repro https://drive.google.com/file/d/1v300mxXU-N_pYBXd3HJj5dBpmB5-mXiJ/view?usp=sharing -
Saving Gear When go out Trigger Location.
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you for your explanation.! try put away all mod -
Saving Gear When go out Trigger Location.
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well ...It's a little embarrassing to show it to others, but I'll upload drive :https://drive.google.com/file/d/1YeR_1qVlyXWaxYEcKqT1ECLEioMGiypH/view?usp=sharing mod category : https://steamcommunity.com/sharedfiles/filedetails/?id=2242163538 -
Saving Gear When go out Trigger Location.
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
umm. I don't know how to show repo...for instance, announce sqf in mission folder? init.sqf YOU_fnc_account = { params [["_caller", objNull, [objNull]], ["_amount", 0, [0]]]; private _account = _caller getvariable "YOU_account"; _caller setvariable ["YOU_account", _account + _amount]; if (_amount < 0) then { systemChat format ["%1 POINT 사용!", _amount] } else { if (_amount > 0) then { systemChat format ["%1 POINT 획득!", _amount] }; }; systemChat format ["Balance $%1", _account+ _amount]; }; _unit = _this select 0; [_unit, [_unit, "SavedInventory"]] call BIS_fnc_saveInventory; //all trait unlock player setUnitTrait ["engineer",true]; player setUnitTrait ["medic",true]; initPlayerLocal.sqf ["InitializePlayer",[player,true]]call BIS_fnc_dynamicGroups; // When killed, bring _unit,_killer to Server { _x addEventHandler["Killed", { _unit = (_this select 0); _killer = (_this select 1); pKilled = [_unit, _killer]; publicVariableServer "pKilled"; }]; }forEach allUnits; initServer.sqf //calculate Distance bonus and increase _killer's account ["Initialize"] call BIS_fnc_dynamicGroups; "pKilled" addPublicVariableEventhandler { private ["_data"]; private _bonus =0; _data = (_this select 1); _unit = (_data select 0); _killer = (_data select 1); _cID = owner _killer; _distance = _unit distance _killer; if(side _killer == side _unit) then{ [_killer,-100] call You_fnc_account; }; // hint str _distance; if(_distance<100) then { _bonus=0; }; // each kill range over 100m bouns will increase 10 if(_distance>=100) then{ _bonus=(_distance/100)*10; _bonus=[_bonus,0] call BIS_fnc_cutDecimals; hint format ["+거리 보너스 : %1", _bonus]; }; _bonus=_bonus+100; [_killer,_bonus] call You_fnc_account; // pClient = bonus; // _cID publicVariableClient "pClient"; }; onPlayerRespawn.sqf _unit = _this select 0; [_unit, [_unit, "SavedInventory"]] call BIS_fnc_loadInventory; onPlayerOut.sqf _unit = _this select 0; [_unit, [_unit, "assignedItem"]] call BIS_fnc_saveInventory; umm that is all sqf in my mission folder -
[Release] Simple Weapon Shop System
bong oh replied to hoverguy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Sorry to reply late Nice, no more lag now ! Thanks to make this mod I haven't seen the code in detail yet, but can I make different sales items for different teams? Or should I make another file name and apply it separately? -
Trying make custom point& store system...
bong oh posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm trying to create a system that gets the local score by kill count and capture point and uses it in the store. This is the referenced youtube... https://www.youtube.com/watch?v=8ARJ_Ap_AaQ&list=PLnHeglBaPYu_uYy_VAov71-Y3_Aonff0i&index=13&ab_channel=SneakyKittyGaming My mission flow is 1. Get points through kill or capture. 2. Use this score to get personal weapons from the store. 3. When out of the trigger range, the equipment mounted is stored, and even if the player dies equipped with other equipment, he will be revived to the previously stored equipment. 4. player can check his money by groupchat but problem is... 1. how sqf file access to initplyaerlocal's variable? 2. That is too hard saved equipment when out of trigger range So..Briefly summarized initPlayerLocal | _x addEventHandler["Killed", { _unit = (_this select 0); _killer = (_this select 1); pKilled = [_unit, _killer]; publicVariableServer "pKilled"; }]; | initServer _distance = _unit distance _killer; if(_distance<100) then { _score=100; }; if(_distance>=100) then{ _score=100+(_distance % 100)*10 }; pClient = _score; _cID publicVariableClient "pClient"; | initPlayerLocal | _TotalScore=_TotalScore+_score and, addAction[(("Wallet")),"showScore.sqf" | showScore.sqf groupChat (format["%1 Points", _TotalScore]);]; <- here is not work How can I do? -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this addAction ["Buy Truck", "if (((_this select 1) getVariable ""YOU_account"")>1500) then {systemChat ""you bought Truck!""; [_this select 1, -1500] call YOU_fnc_account,; _spawnedvehicle = createVehicle[""rhsusf_m1078A1P2_B_D_fmtv_usarmy"",getMarkerPos""Truck"",[], 0, ""NONE""]; clearWeaponCargoGlobal _spawnedvehicle; clearMagazineCargoGlobal _spawnedvehicle; clearItemCargoGlobal _spawnedvehicle; clearBackpackCargoGlobal _spawnedvehicle; } else {systemChat ""Not Enough Money""};"]; this addAction ["Buy Humbee", "if (((_this select 1) getVariable ""YOU_account"")>2500) then {systemChat ""you bought Humbee!""; [_this select 1, -2500] call YOU_fnc_account,; _spawnedvehicle = createVehicle[""rhsusf_m1078A1P2_B_D_fmtv_usarmy"",getMarkerPos""Car"",[], 0, ""NONE""]; clearWeaponCargoGlobal _spawnedvehicle; clearMagazineCargoGlobal _spawnedvehicle; clearItemCargoGlobal _spawnedvehicle; clearBackpackCargoGlobal _spawnedvehicle; } else {systemChat ""Not Enough Money""};"]; this addAction ["Buy MRAP", "if (((_this select 1) getVariable ""YOU_account"")>3500) then {systemChat ""you bought MRAP!""; [_this select 1, -3500] call YOU_fnc_account,; _spawnedvehicle = createVehicle[""rhsusf_M1230_M2_usarmy_d"",getMarkerPos""Mrap"",[], 0, ""NONE""]; clearWeaponCargoGlobal _spawnedvehicle; clearMagazineCargoGlobal _spawnedvehicle; clearItemCargoGlobal _spawnedvehicle; clearBackpackCargoGlobal _spawnedvehicle; } else {systemChat ""Not Enough Money""};"]; this addAction ["Buy Heli", "if (((_this select 1) getVariable ""YOU_account"")>3500) then {systemChat ""you bought Heli!""; [_this select 1, -3500] call YOU_fnc_account,; _spawnedvehicle = createVehicle[""RHS_MELB_AH6M"",getMarkerPos""Heli"",[], 0, ""NONE""]; clearWeaponCargoGlobal _spawnedvehicle; clearMagazineCargoGlobal _spawnedvehicle; clearItemCargoGlobal _spawnedvehicle; clearBackpackCargoGlobal _spawnedvehicle; } else {systemChat ""Not Enough Money""};"]; this setObjectTexture[0,"pic\car3.jpg"]; -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Now.. this is work.. I can't understand this code is same above that but work.. I found red dot in code when I put here. then I remove that dot and copy in game, that code work correctly . wtf is that... any way yup... work this addAction ["Buy truck", "if (((_this select 1) getVariable ""YOU_account"")>1500) then {systemChat ""you bought truck!""; [_this select 1, -1500] call YOU_fnc_account,; _spawnedvehicle = createVehicle[""rhsusf_m1078A1P2_B_D_fmtv_usarmy"",getMarkerPos ""Truck"",[], 0, ""NONE""]; clearWeaponCargoGlobal _spawnedvehicle; clearMagazineCargoGlobal _spawnedvehicle; clearItemCargoGlobal _spawnedvehicle; } else {systemChat ""Not Enough Money""};"]; -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I know that.. but i "" needed when call name in addAction. and that makes error. -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
this addAction ["Buy Truck", "if (((_this select 1) getVariable ""YOU_account"")>1500) then {systemChat ""you bought Truck!""; [_this select 1, -1500] call YOU_fnc_account,; _spawnedvehicle = createVehicle[""rhsusf_m1078A1P2_B_D_fmtv_usarmy"",getMarkerPos""Truck"",[], 0, ""NONE""]; clearBackpackCargoGlobal _spawnedvehicle; clearWeaponCargoGlobal _spawnedvehicle; clearMagazineCargoGlobal _spawnedvehicle; clearItemCargoGlobal _spawnedvehicle; } else {systemChat ""Not Enough Money""};"]; This code make error createVehicle#[""rhsusf........ error . but when spawn vehicle, this code actually work. I don't understand why this code works correctly in error. for delete error code... #2 try put out spawn vehicle code to sqf file this addAction ["Buy Truck", "if (((_this select 1) getVariable ""YOU_account"")>1500) then {systemChat ""you bought Truck!""; [_this select 1, -1500] call Truck,; ""store\Vehicle_truck.sqf""; } else {systemChat ""Not Enough Money""};"]; Vehicle_truck.sqf _spawnedvehicle = createVehicle[""rhsusf_m1078A1P2_B_D_fmtv_usarmy"",getMarkerPos""Truck"",[], 0, ""NONE""]; clearBackpackCargoGlobal _spawnedvehicle; clearWeaponCargoGlobal _spawnedvehicle; clearMagazineCargoGlobal _spawnedvehicle; clearItemCargoGlobal _spawnedvehicle; but this code not work... --------------------------------------------- below code is sell watch if player have watch in inventory(not assigned) Can I ask This code work in Multiplayer? The other user's watch doesn't go all out too, does it? this addAction ["Sell Watch $100", "if (""ItemWatch"" in items (_this select 1)) then {systemChat ""you sell Watch!""; [_this select 1, 100] call YOU_fnc_account,; _this removeItem ""ItemWatch""; } else {systemChat ""No more Watch in your inventory""};"]; -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
3rd problem solved. just respawn to 'respawn_west' marker not respawn module. -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Sorry to late reply! When finish work, Let that code check out! thanks! -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
+ When I respawn, start with equipment when I died. scripts onPlayerKilled.sqf _unit = _this select 0; [_unit, [_unit, "SavedInventory"]] call BIS_fnc_saveInventory; onPlayerRespawn.sqf _unit = _this select 0; [_unit, [_unit, "SavedInventory"]] call BIS_fnc_loadInventory; and add trophies (ex. watch, compass, gps) bluefor have watch, gps(leader), OPFOR have compass, gps(leader) It can sell to shop -> gps/watch : 100point gps : 500 point so I tried shop addAction bub Error shop object init _items = items player; this addAction ["Sell Watch", "if (""ItemWatch"" in _items) then {systemChat ""you sell Watch!""; [_this select 1, +100] call YOU_fnc_account,; _this removeItem ""ItemWatch""; } else {systemChat ""Don't have Watch""};"]; How Can I load player's ItemArray in add Action? or just process by sqf? Vehicleshop Object's init this addAction ["Buy transport truck", "if (((_this select 1) getVariable ""YOU_account"")>1500) then {systemChat ""you bought transport truck!""; [_this select 1, -1500] call YOU_fnc_account,; createVehicle [""rhsusf_m1078A1P2_B_D_fmtv_usarmy"",getMarkerPos ""Truck"",[], 0, ""NONE""] ; } else {systemChat ""Not Enough Money""};"]; another Problem is ... when I respawn that truck, that trunk is full of items and weapons. Can I remove all that item in addAction ? So I tried find way from this nice discussion start - custom loadout When I set eden editor buy weapon and die - save gear respawn - gear equipped with buying weapon -
[Release] Simple Weapon Shop System
bong oh replied to hoverguy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
When I tested this awesome module, screen freezes every 2 seconds. Why does this happen? All Computer resource is normal. https://youtu.be/F9gfSOuycRo -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Wow..It work Thank you again for spending your time on this matter . I want to help other people's work someday just like you. -
Trying make custom point& store system...
bong oh replied to bong oh's topic in ARMA 3 - MISSION EDITING & SCRIPTING
wow That is work. god damm miracle... It's amazing how one VR box make all things works. I really feel like there's a long way to go to master arma3 editing. + when I put in this script in shop object, Error in ["#FirstAidKit",....... why this is error? this addAction ["Buy FirstAidKit $50", "if (((_this select 1) getVariable ""YOU_account"")>50) then {systemChat ""you bought a firstaidkit!""; [_this select 1, -50] call YOU_fnc_account,; Itembox addItemCargoGlobal ["FirstAidKit",1]; } else {systemChat ""Not Enough Money""};"];