News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: P_Striker_A EvadeBack for Player  (Read 3674 times)

0 Members and 1 Guest are viewing this topic.

Offline mhdt

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
P_Striker_A EvadeBack for Player
« on: February 25, 2022, 05:33:28 AM »
it work sucks in fact
Code: [Select]
PlayerSetControl(0)
PlayerLockButtonInputsExcept(true)
PedSetActionTree(gplayer,"/global/p_striker_a","act/p_striker_a.act")
PedSetTaskNode(gplayer,"evadeback","AI.act")
Wait(0)
PedSetAITree(gplayer, "/Global/PlayerAI", "Act/PlayerAI.act")
PlayerSetControl(1)
local lastWeapon = PedGetWeapon(gplayer)
while PedMePlaying(gplayer,"evadeback",true) do
PedSetWeapon(gplayer,lastWeapon)
Wait(0)
end
PedSetActionTree(gplayer, "/global/player","act/player.act")
Wait(0)
PlayerLockButtonInputsExcept(false)
« Last Edit: March 10, 2022, 09:14:05 AM by mhdt »

Offline J_Striker_A

  • Jr. Member
  • **
  • Posts: 29
    • View Profile
Re: P_Striker_A EvadeBack for Player
« Reply #1 on: February 25, 2022, 08:15:54 AM »
Very Cool find thanks for sharing when I saw this I was excited to try and fix it up it worked like that for me:
PlayerSetControl(0)
   PedSetAITree(gPlayer,"/Global/AI", "Act/AI.act")
  PedSetActionTree(gPlayer,"/Global/P_Striker_A", "Act/Anim/P_Striker_A.act")
PedSetTaskNode(gplayer,"evadeback","ai.act")
         Wait(350)
          PlayerSetControl(1)
           PedSetAITree(gPlayer, "/Global/PlayerAI", "Act/PlayerAI.act")
and thanks to your find I was also able to find the second evade just switch the "evadeback" to "evadecounter"
« Last Edit: February 25, 2022, 08:22:52 AM by J_Striker_A »

Offline mhdt

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: P_Striker_A EvadeBack for Player
« Reply #2 on: February 25, 2022, 05:58:22 PM »
i like Nemesis evadeback to get evadecounter