script help

Gurtag

Member
hey guys i am using this script as timer to kill entities on demand at the desired laps of time, but i need to to just remove the entity instead of playing death anim, what piece of code am i missing..?

Code:
void lifespan(int Value){
    void self = getlocalvar("self");

    changeentityproperty(self, "lifespancountdown", Value);
}
 
hey guys i am using this script as timer to kill entities on demand at the desired laps of time, but i need to to just remove the entity instead of playing death anim, what piece of code am i missing..?

Code:
void lifespan(int Value){
    void self = getlocalvar("self");

    changeentityproperty(self, "lifespancountdown", Value);
}

If you just want to outright remove an entity on the spot, you kill it.

Note, the version matters - OpenBOR 3.x doesn't have the optional "trigger" flag mentioned, but the kill function is the same otherwise.

DC
 
hey guys i am using this script as timer to kill entities on demand at the desired laps of time, but i need to to just remove the entity instead of playing death anim, what piece of code am i missing..?

Do you want to have entities to remove themselves on their own? or do you want to remove certain entities at certain time?
 
Back
Top Bottom