spawn Bred
@script
void main()
{
void self = getlocalvar("self");
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
coords -160 190
at 0
anim follow1
loop 1
delay 10
offset 120 154
frame data/chars/bred/wait.png
@cmd attack1 -500 150 400 "ANI_FOLLOW2"
frame data/chars/bred/wait.png
anim follow2
delay 10
offset 120 154
frame data/chars/bred/rise3.png
frame data/chars/bred/walk1.png
Bloodbane said:Dyhego: you need to spawn the enemies + force them to start with certain animation.
For instance:
Code:spawn Bred @script void main() { void self = getlocalvar("self"); performattack(self, openborconstant("ANI_FOLLOW1")); } @end_script coords -160 190 at 0
In this example, Bred starts with FOLLOW1. which is his wait animation:
Code:anim follow1 loop 1 delay 10 offset 120 154 frame data/chars/bred/wait.png @cmd attack1 -500 150 400 "ANI_FOLLOW2" frame data/chars/bred/wait.png anim follow2 delay 10 offset 120 154 frame data/chars/bred/rise3.png frame data/chars/bred/walk1.png
FOLLOW1 is looped and there's special script to end the loop is player is nearby.
If you need example in form of a mod, you can download BlankMod++. You can find that Bred example in Slums level and other stuffs there![]()
#Group1==========================================================================
group 2 2
at 845
wait
at 845
spawn enemy1
coords -90 230
at 845
spawn enemy2
coords 390 175
at 845
#SpawnWaitEnemys=====================================================================
spawn enemy3
@script
void main()
{
void self = getlocalvar("self");
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
coords 911 173
at 0
spawn enemy3
@script
void main()
{
void self = getlocalvar("self");
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
coords 934 199
at 0
spawn enemy3
@script
void main()
{
void self = getlocalvar("self");
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
coords 978 220
at 0
#SpawnWaitEnemys=====================================================================
spawn enemy3
@script
void main()
{
void self = getlocalvar("self");
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
coords 411 173
at 500
spawn enemy3
@script
void main()
{
void self = getlocalvar("self");
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
coords 404 199
at 530
spawn enemy3
@script
void main()
{
void self = getlocalvar("self");
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script
coords 403 220
at 575
#Group1==========================================================================
group 2 2
at 845
wait
at 845
spawn enemy1
coords -90 230
at 845
spawn enemy2
coords 390 175
at 845