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


Author Topic: LUA Setting fighting styles  (Read 2188 times)

0 Members and 1 Guest are viewing this topic.

Offline Reath

  • Jr. Member
  • **
  • Posts: 26
  • Gender: Male
    • View Profile
LUA Setting fighting styles
« on: December 08, 2013, 01:07:12 PM »
Is it not possible to use LUA to set a fighting style without having to also spawn the char? Or how do you make them spawn in multiple places like Russell? I assume that would be setting multiple locations and having it randomly select one? How would you make it so they will despawn if they get far enough away from the player?
Also, even with PedWander they don't act "normal".

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: LUA Setting fighting styles
« Reply #1 on: December 08, 2013, 01:31:44 PM »
The only way to set fighting styles to peds in Freeroam is via Hex editing the Ide. There isn't away (as far as I know of) to change fighting styles through Lua without spawning a ped first.

The way russell is spawn is during a trigger setting written in the main.lur where he is suppose to spawn after classes.

Offline Reath

  • Jr. Member
  • **
  • Posts: 26
  • Gender: Male
    • View Profile
Re: LUA Setting fighting styles
« Reply #2 on: December 08, 2013, 02:30:11 PM »
Alright, thanks for answering. It seems some characters can only be given styles (or certain styles) through LUA. Which is a bit annoying if they can only be set by spawning them.

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: LUA Setting fighting styles
« Reply #3 on: December 08, 2013, 04:57:32 PM »
The only way to set fighting styles to peds in Freeroam is via Hex editing the Ide. There isn't away (as far as I know of) to change fighting styles through Lua without spawning a ped first.

The way russell is spawn is during a trigger setting written in the main.lur where he is suppose to spawn after classes.

Peds CAN be given custom styles via LUA. I have done this many many times in the past and know pretty much how to do it.

Tho...you have to override a couple things in order to pull this off and it ONLY works for the mod you have active and will not just stay active thru the entire game unless you make this override in a library script that stays loaded all the time.