G1R:MP Forum Alpha
Log in Join
Gothic 1 Remake Multiplayer

The Colony Forum

News, support, development discussions, server communities, and stories from beyond the Barrier.

Colony discussion

[Feature request] IsPlayerCombatMode

Started by PaolSon44 in Suggestions

  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
09-15-2026, 05:40 PM (This post was last modified: 09-15-2026, 05:42 PM by PaolSon44.)
#1
Hey,

Something like that will be cool:

isPlayerCombatMode

Checks wheter player is in combat mode. Usually like held melee / distance weapon, fists or use magic.

Syntax

Quote:bool isPlayerCombatMode(int playerId) 

Examples

Quote:if isPlayerCombatMode(playerId) then
    unbindKey("tab", "both", handleScoreboard)
end

In this way server can check player combat state, so this will enable to protect other functions which would be disturb a combat.  Big Grin
Discord: paolson44
Forum Jump: