OpenBOR_v3.0_Build_3842

msmalik681

OpenBOR Developer
Staff member
this build is not working for me i get a crash complaining about my speech entity last build i used OpenBOR_v3.0_Build_3793 had no such issue

I have attached the entity causing the crash

[attachment deleted by admin]
 
@cmd setglobalvar("textbox", 2)
@cmd setglobalvar("Y", 40)


These are horribly wrong.  They should be something like:

@cmd setglobalvar "textbox"  2
@cmd setglobalvar "Y" 40
 
updated but still getting crashes attached both speech and log files

[attachment deleted by admin]
 
openborconstant(Name)


This name must be a animation name, judging from your code (or whatever you copied from). So I think you need to use alias to set a desired animation.

For example:

spawn speech
alias ANI_FREESPECIAL2  # Bryan lines
coords blahblah
at 0

 
thats right i use this to spawn :

spawn  speech
alias ANI_FREESPECIAL
coords  0 0
at      0
 
It is good to skip the first frame of your idle animation, because alias is set after the entity is spawned. So in the first frame it is still speech.

anim idle
loop 0
delay 5
offset 0 0
@script
if(frame==1)
{
    void self = getlocalvar("self");
    char Name = getentityproperty(self,"name");
    changeentityproperty(self, "animation", openborconstant(Name));
}
@end_script
frame data/chars/0gamefx/empty.png
frame data/chars/0gamefx/empty.png
 
Back
Top Bottom