xyz555 said:
PS VITA said:
xyz555 said:
This effect is indeed very good, because I am making a game, but this effect is just missing. I am Very helpless
Thank you very much, Mr., for your help. Your method is very good. I will investigate. thank you
That .gif you are showing us, is your game?
Looks dope if so.
This game is in production, but still has not been able to achieve this effect
( For example, the weapon is a horse, then
The enemy will run over and ride horses very actively )
I recently succeeded using the following script...
Code:
void main()
{
SuperArmorOnAnim (openborconstant("ANI_FOLLOW81"), openborconstant("ANI_FREESPECIAL35"));
}
void SuperArmorOnAnim (int PAnim1, int PAnim2){
void ent = getlocalvar("self");
int animation = getentityproperty(ent, "animationid");
if(animation == PAnim1 || animation == PAnim2){
changeentityproperty(ent, "nopain", 1);
changeentityproperty(ent, "nodrop", 1);
} else {
changeentityproperty(ent, "nopain", 0);
changeentityproperty(ent, "nodrop", 0);
}
}
Now you might be wondering why I'm showing this and it's because there might be a script event that exists whenever an enemy is about to pick up a weapon or item get if you will.
So if that exists, then you could use a similar script to alter the running speed of the guy that's trying to get on the horse.
Normally you create a .txt file and name it something like in_itemget.c place it in the scripts folder and on your character who will be getting on the horse .txt file you call the script item get data/scripts/in_itemget.c
Anyhow this just me brainstorming, if you want to see the post I'm referring to look up "super armor" and check that thread.
But yeah, I'm not sure if what I'm suggesting exists.
Edit: Here's the thread
https://www.chronocrash.com/forum/index.php?topic=5190.msg74163#msg74163
Oh and what worked for me was takedamage script
"The takedamage event runs when you take a hit, but right before the engine processes hit reaction."
So perhaps there might be a similar script function to when an enemy is ordered to pick up an item or weapon.