KaidenSmith
Member-
Content Count
25 -
Joined
-
Last visited
-
Medals
Community Reputation
1 NeutralAbout KaidenSmith
-
Rank
Private First Class
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Relative Direction
KaidenSmith replied to KaidenSmith's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Already attempted getDir but didn't realize the method until now. Simply did: /* _obj: the actual blockade _house: obvisouly the house _objTimesDir; the amount of times it needs to rotate */ _obj setDir (getDir _house - (_objTimesDir * 90)); -
KaidenSmith started following Object player destruct detection, Relative Direction, AnimationName of door and and 2 others
-
So I am currently trying to make a script that sets some type of blockade in the windows depending on the building. It works fine positioning wise since I have worked with modelToWorld/worldToModel, but I am not sure how to get and set the direction depending on the building/where the building is, so it just ends up looking like this: Would appreciate it if anyone could help me out with this.
-
Does anyone have a simple way of getting the animation name of the door you are looking at? I have been using animationNames and then opening each of the doors using foreach while displaying the anime name in system chat, but it is not very efficient.
-
Check if command is disabled
KaidenSmith replied to KaidenSmith's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Nvm figured it out 🙃 For people who wanna know just use isClass like so: isClass (missionConfigFile >> "CfgDisabledCommands" >> "COMMAND") -
Is it possible to check if a command is disabled via cfgdisabledcommands?
-
Feel like a complete moron when you explain it like that 🤦♂️
-
Just simply instead of writing getMarkerPos "Name" than doing getMarkerPos _markerName which would then return the name of the case, which in this case would be "Name".
-
Is it possible to return the name of the case in which a script is in? Example: _location = getMarkerPos; _name = ?; switch (_location) do { case "Name" {player setPos getMarkerPos _name}; }; Where the _name variable is supposed to come out as "Name".
-
Object player destruct detection
KaidenSmith replied to KaidenSmith's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yeah clearly -
Object player destruct detection
KaidenSmith replied to KaidenSmith's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I might have been a bit unclear, but it is not supposed to determine the damage done to vehicles. It is supposed to determine who did the damage to the object. Objects such as walls. -
So I am trying to make a script or add an event handler that detects if you destroyed an object. This is for an object repair script. So if you destroy the object yourself, you will not be able to repair it.
-
Ty, worked perfectly!
-
Tried it and it doesn't work.
-
private["_type","_index","_price","_var","_amount","_name"]; if((lbCurSel 2402) == -1) exitWith {}; _type = lbData[2402,(lbCurSel 2402)]; _index = [_type,sell_array] call TON_fnc_index; if(_index == -1) exitWith {}; _var = [_type,0] call life_fnc_varHandle; _amount = ctrlText 2405; if(!([_amount] call TON_fnc_isnumber)) exitWith {hint localize "STR_Shop_Virt_NoNum";}; _amount = parseNumber (_amount); _amount = parseNumber true; if(_amount > (missionNameSpace getVariable _var)) exitWith {hint localize "STR_Shop_Virt_NotEnough"}; if ((time - life_action_delay) < 0.2) exitWith {hint localize "STR_NOTF_ActionDelay";}; life_action_delay = time; _price = (_price * _amount); _name = [_var] call life_fnc_vartostr; if(([false,_type,_amount] call life_fnc_handleInv)) then { hint format[localize "STR_Shop_Virt_SellItem",_amount,_name,[_price] call life_fnc_numberText]; [format["%1 (%2) sold %3 %4 for $%5.", profileName, getPlayerUID player, _amount, _name, [_price] call life_fnc_numberText], "MoneyLog"] remoteExecCall["A3Log", 2]; SaCpTBF = SaCpTBF + _price; DYNAMICMARKET_boughtItems pushBack [_type,_amount]; [] call life_fnc_virt_update; [] spawn SOCK_fnc_updateRequest; }; [0] call SOCK_fnc_updatePartial; [3] call SOCK_fnc_updatePartial; My temp fix is to use _amount = parseNumber true; Makes it so you only sell 1 item per click no matter what.
-
It is a menu where you can sell certain items you find or buy. This would be the part of the dialog that is used in this case: class sellEdit : RscEdit { idc = 2405; text = "1"; sizeEx = 0.030; x = 0.554166 * safezoneW + safezoneX; y = 0.60537 * safezoneH + safezoneY; w = 0.069375 * safezoneW; h = 0.0235185 * safezoneH; }; class ButtonRemoveG : RscButtonSilent { idc = -1; text = "$STR_VS_SellItem"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] call item_sell"; x = 0.531979 * safezoneW + safezoneX; y = 0.641148 * safezoneH + safezoneY; w = 0.0803125 * safezoneW; h = 0.0272222 * safezoneH; }; I am trying to make it so the dialog closes or something like that if you put a negative number in the RscEdit box. Cause as of right now when you put a "-" in, the item will duplicate.