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


Author Topic: BoxingPlayer Fighting Style  (Read 2475 times)

0 Members and 2 Guests are viewing this topic.

Offline Black Norton

  • Keep Calm
  • Jr. Member
  • **
  • Posts: 86
  • Gender: Male
  • Peace For Respect
    • View Profile
BoxingPlayer Fighting Style
« on: June 23, 2013, 10:41:27 PM »
hi all
i change jimmy fighting style with boxingplayer.but jimmy cannot run,equip a weapon and exit the door.
how to fix the problem??

thanks

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: BoxingPlayer Fighting Style
« Reply #1 on: June 23, 2013, 11:45:21 PM »
What you can do is write a code that cycles between the player style and the boxing style based on the buttons you press.

Offline Black Norton

  • Keep Calm
  • Jr. Member
  • **
  • Posts: 86
  • Gender: Male
  • Peace For Respect
    • View Profile
Re: BoxingPlayer Fighting Style
« Reply #2 on: June 24, 2013, 03:19:46 AM »
Is the LUA Method??

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: BoxingPlayer Fighting Style
« Reply #3 on: June 24, 2013, 04:16:17 AM »
Yep.

Offline Black Norton

  • Keep Calm
  • Jr. Member
  • **
  • Posts: 86
  • Gender: Male
  • Peace For Respect
    • View Profile
Re: BoxingPlayer Fighting Style
« Reply #4 on: June 24, 2013, 04:40:24 AM »
wow i don't know lua can use for Setup the controller.
How to make that??

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: BoxingPlayer Fighting Style
« Reply #5 on: June 24, 2013, 05:19:29 AM »
Add this under main:

gMissionRunning = true
  while gMissionRunning do
    if IsButtonPressed(0, 0) --This is the left arrow on the keyboard
      PedSetActionTree(gPlayer, "/Global/Player", "Act/Anim/Player.act")
    elseif IsButtonPressed(1, 0) -- Right arrow on the keyboard
      PedSetActionTree(gPlayer, "/Global/BoxingPlayer", "Act/Anim/BoxingPlayer.act")
    Wait(0)
   end