Est SetArmor

From EventScripts Community Encyclopedia
Syntax: est_SetArmor <identifier> <value>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Sets the armor for the playerselection to the value

Parameters

  • identifier - See Est_PlayerSelection for player selection help
  • value - The value you want to set the armor to

Example


event player_hurt
{
	if ("give_me_armor" in event_var(es_username)) do
	{
		// show them a little easter egg
		es_tell event_var(userid) #green ok, I will be gracious. Take 5 armor!
		es_set player_health 0
		es est_GetArmor player_health event_var(userid)
		es_math player_health + 5
		es est_SetArmor event_var(userid) server_var(player_health)
	}
}

Notes

  • None

See Also

blog comments powered by Disqus