ermm...by map hack i mean the software that allows people to see everything even if the fog of war is on
Provided that there is a place on your map for a "evil unit", this trigger could work.
But if there is any unit w/ far sight or something that would reveal a location this is a no go.
- Seeing
- Events
- Time - Every 5.00 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (AntiMH 0001 <gen> is visible to Player 1-12) Equal to True
- Then - Actions
- Game - Defeat Player 1-12 with the message: Stop Hacking :P
- Else - Actions
Provided that there is a place on your map for a "evil unit", this trigger could work.
But if there is any unit w/ far sight or something that would reveal a location this is a no go.
- Seeing
- Events
- Time - Every 5.00 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (AntiMH 0001 <gen> is visible to Player 1-12) Equal to True
- Then - Actions
- Game - Defeat Player 1-12 with the message: Stop Hacking :P
- Else - Actions
That IsUnitVisible won't work, lol. Even with maphack, the IsUnitVisible will return false.
It'll only be visible if the player is legitly seeing the unit.
If a player selects or targets an invisible units (they can't click it, uh oh), then they must be hacking. However, if a native is used, like SelectUnit, then they aren't. You have to detect when the player is actually messing with the unit.
This will allow players to still target units with aoe spells. Furthermore, players will still see what other players are doing. However, players will no longer be able to use like a hero killer move on a target unit =).
you can just check if an inaccessible point in the game is revealed for the certain player map hack reveals the whole map so create a point in the corner of the map block it, dl a map hack and try it out..