Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i;
- for (i = 0; i < openborvariant("count_entities"); ++i)
- {
- // If we on an odd box, don't do anything.
- if(i % 2)
- {
- continue;
- }
- void ent = getentity(i);
- char name = getentityproperty(ent,"defaultname");
- if ( getentityproperty(ent, "exists") && name == "box" )
- {
- int sort = getentityproperty(ent,"sortid");
- sort++;
- changeentityproperty(ent,"sortid", sort);
- }
- }
Add Comment
Please, Sign In to add comment