object.shields

Type: Number

This accessor holds the object's current shields. A value of 100 represents 100% shields.

This accessor supports read and write access.

Example

for each player do
   global.number[0] = current_player.biped.shields
   if global.number[0] > 100 then -- the player has overshields
      current_player.biped.shields /= 2
   end
end

See also