Solved Spawnbind isn't working with this.

Question that is answered or resolved.

esn23

Active member
Im not sure what im doing wrong, it's probably something very simple that i keep overlooking..  Everything on this works as it should but the spawnbind effect isnt showing up...

name         Darwincp
type         none
no_adjust_base 1
suject_to_hole 1
nolife 1
candamage player
animationscript data/scripts/escript.c

load tp



anim follow1
@script
    if(frame==1){
      void self = getlocalvar("self");
      int x = getentityproperty(self,"x");
      int y = getentityproperty(self,"y");

      setindexedvar(0, x);
      setindexedvar(1, y);
    }
    if(frame==4){
      void self = getlocalvar("self");

      killentity(self); //Suicide!
    }
@end_script
delay 10
offset 58 167
frame data/chars/misc/check/Darwin/up1.png
frame data/chars/misc/check/Darwin/up2.png
frame data/chars/misc/check/Darwin/up3.png
delay 30
frame data/chars/misc/check/Darwin/ty1.png
frame data/chars/misc/check/Darwin/ty2.png
delay 10
@cmd spawnBind2 "tp" 0 0 1
frame data/chars/misc/check/Darwin/t1.png
frame data/chars/misc/check/Darwin/t2.png
frame data/chars/misc/check/Darwin/t3.png
frame data/chars/misc/check/Darwin/t4.png
frame data/chars/misc/check/Darwin/t1.png
frame data/chars/misc/check/Darwin/t2.png
frame data/chars/misc/check/Darwin/t3.png
frame data/chars/misc/check/Darwin/t4.png
delay 80
frame data/chars/Emma/invis.png

anim idle

loop 1
delay 10
offset 58 167
noreflect 1
followanim 1
followcond 1
hitfx data/sounds/silent.wav
attack 43 133 40 34 0 0 1 1 0 0
        frame data/chars/misc/check/Darwin/c1.png
attack 43 133 40 34 0 0 1 1 0 0
frame data/chars/misc/check/Darwin/c2.png
delay 5
attack 43 133 40 34 0 0 1 1 0 0
frame data/chars/misc/check/Darwin/c2.png

here is the effect text

name         tp
type         none
no_adjust_base 1
suject_to_hole 1
nolife 1



anim idle
loop 1
delay 10
offset 58 167
hitfx data/sounds/silent.wav
frame data/chars/misc/check/fx/00.png
        frame data/chars/misc/check/fx/01.png
        frame data/chars/misc/check/fx/02.png
        frame data/chars/misc/check/fx/03.png
        frame data/chars/misc/check/fx/04.png
        frame data/chars/misc/check/fx/05.png
        frame data/chars/misc/check/fx/06.png
        frame data/chars/misc/check/fx/07.png
        frame data/chars/misc/check/fx/08.png
        frame data/chars/misc/check/fx/09.png
        frame data/chars/misc/check/fx/10.png
        frame data/chars/misc/check/fx/11.png
        frame data/chars/misc/check/fx/12.png
        frame data/chars/misc/check/fx/13.png
        frame data/chars/misc/check/fx/cp.png
        frame data/chars/Emma/invis.png
        frame data/chars/misc/check/fx/cp.png
        frame data/chars/Emma/invis.png

thank you in advance for any help.. Im just not seeing it lol
 
Hello there!

We might gonna need more information.
-What's shown on the OpenBoRLog.txt?
-What exactly is happening wrong?
-Could you share this "spawnbind2" script for us to analyze?
 
It works on everything else :)  Basically when he switches to follow1 on the 5th frame it should summon another entity called fx which sould overlap over the entity to teleport it out.. But it is not appearing.. I believe its spawn.h script which i included in escript.c.. It works with everything else though so im sorta at a loss lol..  Ty for tryin to help :) I also notice it only plays the first part of the animation and doesnt play the rest...  It plays the frames up1, up2 and up3 and disregards the rest.

anim follow1
@script
    if(frame==1){
      void self = getlocalvar("self");
      int x = getentityproperty(self,"x");
      int y = getentityproperty(self,"y");

      setindexedvar(0, x);
      setindexedvar(1, y);
    }
    if(frame==4){
      void self = getlocalvar("self");

      killentity(self); //Suicide!
    }
@end_script
delay 10
offset 58 167
frame data/chars/misc/check/Darwin/up1.png
frame data/chars/misc/check/Darwin/up2.png
frame data/chars/misc/check/Darwin/up3.png
delay 30
frame data/chars/misc/check/Darwin/ty1.png
frame data/chars/misc/check/Darwin/ty2.png
delay 10
@cmd spawnBind2 "tp" 0 0 0
frame data/chars/misc/check/Darwin/t1.png
frame data/chars/misc/check/Darwin/t2.png
frame data/chars/misc/check/Darwin/t3.png
frame data/chars/misc/check/Darwin/t4.png
frame data/chars/misc/check/Darwin/t1.png
frame data/chars/misc/check/Darwin/t2.png
frame data/chars/misc/check/Darwin/t3.png
frame data/chars/misc/check/Darwin/t4.png
delay 80
frame data/chars/Emma/invis.png

 
Back
Top Bottom