Hello,I have a custom throw with 2 different animations, but using the same state.I need P2 (the grabbed one) to check P1's anim, to change it's animation accordingly.I don't know what kind of setting to use.This is my try. (doesn't work)If player anim is 1581, the grabbed one change anim to 1585.[State 1581, ChangeAnim2]type = ChangeAnim2triggerall = anim = 1581trigger1 = !Timevalue = 1585I'm pretty sure there is an effective way to do it.But I feel rusty, I cannot find the right "trigger"ThanksEDIT : OK I suppose I should just double the state and give each of them their own anim, instead of trying to "save space"
if your game is just 1 on 1 and not simul or tag team, just trigger "enemy,anim=1581" then changeanim2=1585 trigger the changeif you are playing a simul or tag game, it takes a bit more. using "enemy," in teams will mess things up because it counts btoh, so instead you use gethitvar to grab the ID from the player doing it, and pass it into a playerID(gethitvar(whateverparameter)),anim = 1581, then changeanim2=1585. The most unused paremeter would probably be:fall.envshake.freq = fall.envshake.ampl = fall.envshake.phase =If using one of those, do not put a time paremeter. Set any of those in P1's grab hitdef equal to ID, for example, fall.envshake.freq = ID. This way when p2 reads the gethitvar(fall.envshake.freq), it'll read the ID number of hte player, that you can then pass on to PlayerID(gethitvar(fall.envshake.freq)),anim = etc etc
Thnaks for your reply.That was exactly what I had in mind.I completely forgot that these stuff exists "enemy,anim=..."
Nedflandeurse said, January 20, 2021, 11:19:49 pmThnaks for your reply.That was exactly what I had in mind.I completely forgot that these stuff exists "enemy,anim=..."airforce111 was rightthe graber use one of the unused parameter to give his/her own IDthe target use gethitvar(the unused parater) to get the playerIDand use playerid(gethitvar(xxxxx)),anim = ???