Boss reaction

Victor Benzi

New member
Hello again, guys. I was readind the manual but I don't know if that even exists. I'm trying to put a "boss reaction", like in Battletoads, when a boss shows up the player plays an animation, like a scare one.
Openbor have a function for this? If no, how can I detect in game when a boss spawn to script the animation?
Thank you!
 
newbie here so wait for someone with more knoledge, but in case it serves you, dont know about a specific command for this let alone scripts, but you could do it in an unclean way so to speack, set an attack on your boss spanw anim to triger a an specific pain(scared anim) on your char.
 
Just have a pain animation for players outside of the normal attacks then have a custom script in the bosses onspawnscript to damage the player entities with the corresponding attack.
 
There are many ways to achieve this scared reaction. One is as posted above
The others are:
1. Have the boss set a global variable which if read by heroes in their IDLE, they'll change to scared animation
2. Have the boss run a script which forces all heroes into scared animation
 
Bloodbane said:
There are many ways to achieve this scared reaction. One is as posted above
The others are:
1. Have the boss set a global variable which if read by heroes in their IDLE, they'll change to scared animation
2. Have the boss run a script which forces all heroes into scared animation
I tried with the pain animation like msmalik681 said and worked, but I'm thinking about that number 2 you said.
Is that the same thing?
 
No. #2 can force hero into any animation than just PAIN animation

It works similar to scripted winning pose, except that instead of using winning animation, hero is using scared animation

Example of the script:
Code:
    void P1 = getplayerproperty(0, "entity");
if(P1){
performattack(P1, openborconstant("ANI_FOLLOW10"));
}

This script if run on bosses' SPAWN animation, it will force player 1 to play FOLLOW10 animation
 
Bloodbane said:
No. #2 can force hero into any animation than just PAIN animation

It works similar to scripted winning pose, except that instead of using winning animation, hero is using scared animation

Example of the script:
Code:
    void P1 = getplayerproperty(0, "entity");
if(P1){
performattack(P1, openborconstant("ANI_FOLLOW10"));
}

This script if run on bosses' SPAWN animation, it will force player 1 to play FOLLOW10 animation
It worked! Thanks Bloodbane!
 
Back
Top Bottom