[Request]LUA show every camera/civ/guard but without anyone else seeing them?
Ok so I have got a LUA script that shows every camera/civ/guard but other players can see them I have tried turning changing the stuff that are true to false but it still isn't helping. If anyone can help me here it would be a massive help!
Code:
-- Set colors managers.game_play_central._enemy_contour_units[unit:key()].color = color managers.game_play_central._enemy_contour_units[unit:key()].target_color = target_color end function mark_enemies() local units = World:find_units_quick( "all", 3, 16, 21, managers.slot:get_mask( "enemies" ) ) for i,unit in ipairs( units ) do if not unit:brain() or not unit:brain()._logic_data or not unit:brain()._logic_data.objective or (unit:brain()._logic_data.objective.type ~= "surrender" and unit:brain()._logic_data.objective.type ~= "follow") then if tweak_data.character[ unit:base()._tweak_table ].silent_priority_shout then managers.game_play_central:add_enemy_contour( unit, true ) managers.network:session():send_to_peers_synched( "mark_enemy", unit, false ) setEnemyColor(unit) elseif unit:character_damage().on_marked_state then managers.game_play_central:add_enemy_contour( unit, true ) managers.network:session():send_to_peers_synched( "mark_enemy", unit, false ) setEnemyColor(unit) end end end for u_key, unit in pairs( managers.groupai:state()._security_cameras ) do managers.game_play_central:add_marked_contour_unit( unit ) managers.network:session():send_to_peers_synched( "mark_contour_unit", unit ) end end _markingToggle = not _markingToggle if not _gameUpdateLastMark then _gameUpdateLastMark = nil end local _gameUpdate = Interception.Backup(GameSetup, "update") function GameSetup:update( t, dt ) local result = _gameUpdate(self, t, dt) if _markingToggle and (not _gameUpdateLastMark or t - _gameUpdateLastMark > 4) then _gameUpdateLastMark = t mark_enemies() end return result end