Code: Select all
{
ATTRIBNAME ["drophealth"]
ATTRIBAMNT [100]
ENTITY ["playerdrop"]
Spawn[()
{
Console(true);
NewOrder("Check");
}]
Check[()
{
if(self.player_range<64)
{
ModifyAttribute(ATTRIBNAME,ATTRIBAMNT,ENTITY) // this interacts with my other script, it can be ignored
NewOrder("Death")
}
else
{
RestartOrder()
}
}]
Death[()
{
Remove(true);
}]
}