dantedevil
Well-known member
Based on this script:
Its possible create a new custom grabchek?
Something like:
In ani1: grab animation to play
In ani2: animation to play if enemie is RALF, MARY, GEORGE
IN ani3: animation to play if enemie is kusare, gideon, tusare.
In ani4: animation to play of enemie is not anyone on the mentioned characters.
Thanks.
Code:
void grabcheckA(void Ani1, void Ani2, void Ani3)
{ // Hero's airgrab checker
// This script prevents hero from grabbing ground enemies, bikers, jetpacks, special enemies and non-enemy entities
// Ani1 = Grab animation to play
// Ani2 = Animation to play if hit enemy are bikers or jetpacks
// Ani3 = Animation to play if hit opponent are not airborne enemies
void self = getlocalvar("self");
void target = getentityproperty(self, "opponent");
if(target!=NULL()){
if(getentityproperty(target, "a") > getentityproperty(target, "base")){
int Check = checkgrab(target);
if(Check == 0)
Its possible create a new custom grabchek?
Something like:
In ani1: grab animation to play
In ani2: animation to play if enemie is RALF, MARY, GEORGE
IN ani3: animation to play if enemie is kusare, gideon, tusare.
In ani4: animation to play of enemie is not anyone on the mentioned characters.
Thanks.