object.has_forge_label

Check whether this object has a given Forge label.

Arguments

label

A string literal containing the name of a Forge label, or an integer constant denoting the index of a Forge label in the game variant's label list.

Example

for each player do
   global.object[0] = current_player.get_weapon(primary)
   if global.object[0].has_forge_label("bad_weapon") then
      current_player.biped.kill(false)
   end
end