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


Author Topic: Editing Fighting Styles with Lua  (Read 1967 times)

0 Members and 1 Guest are viewing this topic.

Offline Gustavinzaum

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Editing Fighting Styles with Lua
« on: November 21, 2013, 05:14:51 PM »
Hi, people. I want to know how to make a full fighting style through Lua. I mean, from the beginning ( PRlead_Character...) to end (Global/, Anim, and AI.).
Please, if you know how to do this all, or a part of it, tell me pls  :-X

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: Editing Fighting Styles with Lua
« Reply #1 on: November 22, 2013, 02:56:04 AM »
PedSetActionTree(PEDNAME, "/Global/FIGHTINGSTYLENAME", "Act/Anim/FIGHTINGSTYLENAME.act")

There you go, it will work for all styles, but dont forget to load the animation's needed for that fighting style, aswell dont forget that when using boss fighting style you will need to load all of the animation's needed for them (sometimes they need animations which are more then their ped animations) and set their AI to the boss AI like this :

PedSetAITree(PEDNAME, "/Global/AINAME", "Act/AI/AIFILENAME.act")

good luck

Offline Gustavinzaum

  • Jr. Member
  • **
  • Posts: 34
    • View Profile
Re: Editing Fighting Styles with Lua
« Reply #2 on: November 22, 2013, 04:11:05 PM »
Thanks