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


Author Topic: Run without punching  (Read 1549 times)

0 Members and 1 Guest are viewing this topic.

Offline AfterLife

  • The Reaper
  • Sr. Member
  • ***
  • Posts: 830
  • Gender: Male
  • I'm from the AfterLife...
    • View Profile
Run without punching
« on: June 02, 2015, 09:48:56 AM »
How do I run without punching first when using another style?

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Run without punching
« Reply #1 on: June 02, 2015, 10:16:26 AM »
I've heard from other members before that if you press forward and the sprint button at the exact same time you'll skip the punch, but what I usually do is repeatedly set the player AI and that just seems to work for some reason. Generally you can just do...

PedSetActionTree(gPlayer,"/Global/G_Striker_A","Act/Anim/G_Striker_A.act")
while true do
  PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  Wait(0)
end

Offline AfterLife

  • The Reaper
  • Sr. Member
  • ***
  • Posts: 830
  • Gender: Male
  • I'm from the AfterLife...
    • View Profile
Re: Run without punching
« Reply #2 on: June 02, 2015, 10:29:08 AM »
I've heard from other members before that if you press forward and the sprint button at the exact same time you'll skip the punch, but what I usually do is repeatedly set the player AI and that just seems to work for some reason. Generally you can just do...

PedSetActionTree(gPlayer,"/Global/G_Striker_A","Act/Anim/G_Striker_A.act")
while true do
  PedSetAITree(gPlayer,"/Global/PlayerAI","Act/PlayerAI.act")
  Wait(0)
end
Thanks.

Edit; But when I use it, all my codes don't work anymore. I can't use the nodes or the strafe.
« Last Edit: June 02, 2015, 10:35:26 AM by AfterLife »