Does anyone know if its possible to customize a right click option and add Banking (Zupa coins) to a right click option of for example the radio?
Ive been trying to get this to work but cant seem to figure out the right way based on other code around it, im not the best at this lol.
This below is what im trying to utilize to launch the atm anywhere on the map in the click actions script
["ItemRadio",localize "STR_ZSC_BANK_TELLER","execVM 'scripts\zsc\atmDialog.sqf';","true"],
Using this code above seems like it will work if i can figure out how to rewrite the current atmDialog.sqf to work like this way.
atmDialog.sqf below
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
dayz_actionInProgress = true;
private ["_typeOf"];
player setVariable["isBusy",true,true];
_typeOf = typeOf cursorTarget;
if !(_typeOf in ZSC_bankObjects || _typeOf in ZSC_bankTraders) exitWith {
dayz_actionInProgress = false;
player setVariable["isBusy",false,true];
format [localize "STR_ZSC_BANKING_NOT_AVAIL",_typeOf] call dayz_rollingMessages;
};
Question
Th3-Hunter333
Does anyone know if its possible to customize a right click option and add Banking (Zupa coins) to a right click option of for example the radio?
Ive been trying to get this to work but cant seem to figure out the right way based on other code around it, im not the best at this lol.
This below is what im trying to utilize to launch the atm anywhere on the map in the click actions script
["ItemRadio",localize "STR_ZSC_BANK_TELLER","execVM 'scripts\zsc\atmDialog.sqf';","true"],
Using this code above seems like it will work if i can figure out how to rewrite the current atmDialog.sqf to work like this way.
atmDialog.sqf below
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
dayz_actionInProgress = true;
private ["_typeOf"];
player setVariable["isBusy",true,true];
_typeOf = typeOf cursorTarget;
if !(_typeOf in ZSC_bankObjects || _typeOf in ZSC_bankTraders) exitWith {
dayz_actionInProgress = false;
player setVariable["isBusy",false,true];
format [localize "STR_ZSC_BANKING_NOT_AVAIL",_typeOf] call dayz_rollingMessages;
};
createDialog "atmDialog";
call AtmDialogUpdateAmounts;
waitUntil {!dialog};
dayz_actionInProgress = false;
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now