Toranks
Active member
See on minute 20:08. When I fall with the demolition machine and die, the balls are still "alive" and following me. The machine has a lifespan of 39, but the balls do not. However, if I try to add a 39 lifespan via script, they appear motionless and crooked instead of moving as usual. Any ideas how to fix this?
The balls is an entity without lifespan, and I cannot create it with the lifespan at 39 by default, it must be via script.
Thanks!
This is the animation that acts as a spawn of the balls:
This is the code that I have tested. All cause the balls to become immobile and crooked, as in the attached image
The balls is an entity without lifespan, and I cannot create it with the lifespan at 39 by default, it must be via script.
Thanks!
This is the animation that acts as a spawn of the balls:
Code:
anim follow1
@script
if(frame==1)
{
changeentityproperty(getlocalvar("self"), "type", openborconstant("TYPE_OBSTACLE"));
}
@end_script
loop 0
delay 15
offset 175 540
bbox 0 0 0 0
frame data/chars/3jackballs/steelatk08.gif
frame data/chars/3jackballs/steelatk08.gif
frame data/chars/3jackballs/steelatk08.gif
frame data/chars/3jackballs/steelatk08.gif
@cmd beidle
frame data/chars/3jackballs/steelatk08.gif
This is the code that I have tested. All cause the balls to become immobile and crooked, as in the attached image
Code:
[...]
bbox 0 0 0 0
@cmd lifesp 39
frame data/chars/3jackballs/steelatk08.gif
[...]
[...]
anim follow1
@script
void self = getlocalvar("self");
if(frame==1)
{
changeentityproperty(getlocalvar("self"), "type", openborconstant("TYPE_OBSTACLE"));
changeentityproperty(self, "lifespancountdown", 39);
}
@end_script
[...]
[...]
anim follow1
@script
if(frame==1)
{
changeentityproperty(getlocalvar("self"), "type", openborconstant("TYPE_OBSTACLE"));
changeentityproperty(getlocalvar("self"), "lifespancountdown", 39);
}
@end_script
[...]