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?
 
Do you want to have entities to remove themselves on their own? or do you want to remove certain entities at certain time?
hey there, on their own with no death anim and at certain time defined by lifespan script, i was trying to asemble the above lifespan code with freeself script with out succes so far...
 
Back
Top Bottom