change entiy property -

oldyz

Well-known member
O Ilusionista  - did you ever find out what was going on with this?

Code:
void makeBoss(char target_name, void iBoss)
{// Turn a specific entity to boss
//Douglas Baldan - 2020.07.18
  int i;
  for (i = 0; i < openborvariant("count_entities"); ++i)
  {
      void ent = getentity(i);
    if ( getentityproperty(ent, "exists") )
      {
            if ( getentityproperty(ent,"model") == target_name)
      {
        changeentityproperty(ent, "boss", iBoss);
        continue;
      }
    } else continue;
  }
  return;
}

is the "item drop" flag an entity property too?
 
OK - i supppose i can use Bosser or Bosslow - when the entity dies -

problem is i am trying to figure out how to do make them spawn with ondeathscript or onkillscript -

the binding trick has bugs so i have no choice left
 
Back
Top Bottom