From bb3ce227c265649d4c06cb5404e8faca772fe1ee Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sat, 30 Nov 2013 22:33:09 -0600 Subject: [PATCH] added back player%1 PV --- SQF/dayz_code/compile/player_switchModel.sqf | 4 +--- SQF/dayz_code/system/player_monitor.fsm | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/SQF/dayz_code/compile/player_switchModel.sqf b/SQF/dayz_code/compile/player_switchModel.sqf index 49b1c7861..33c614bd6 100644 --- a/SQF/dayz_code/compile/player_switchModel.sqf +++ b/SQF/dayz_code/compile/player_switchModel.sqf @@ -205,9 +205,7 @@ diag_log str(getMagazineCargo unitBackpack _newUnit); player setVariable ["bodyName",dayz_playerName,true]; - /* _playerUID=getPlayerUID player; _playerObjName = format["player%1",_playerUID]; call compile format["%1 = player;",_playerObjName]; - publicVariable _playerObjName; - */ \ No newline at end of file + publicVariable _playerObjName; \ No newline at end of file diff --git a/SQF/dayz_code/system/player_monitor.fsm b/SQF/dayz_code/system/player_monitor.fsm index 9e4cf8cd5..11f842d6f 100644 --- a/SQF/dayz_code/system/player_monitor.fsm +++ b/SQF/dayz_code/system/player_monitor.fsm @@ -1039,10 +1039,10 @@ class FSM "" \n "//Select Weapon" \n "// Desc: select default weapon & handle multiple muzzles" \n - "////_playerObjName = format[""player%1"",_playerUID];" \n - "////call compile format[""player%1 = player;"",_playerUID];" \n + "_playerObjName = format[""player%1"",_playerUID];" \n + "call compile format[""player%1 = player;"",_playerUID];" \n "////diag_log (format[""player%1 = player"",_playerUID]);" \n - "////publicVariable _playerObjName;" \n + "publicVariable _playerObjName;" \n "" \n "//_state = player getVariable[""state"",[]];" \n "_currentWpn = """";" \n