Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Reath on December 08, 2013, 01:07:12 PM

Title: LUA Setting fighting styles
Post by: Reath 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".
Title: Re: LUA Setting fighting styles
Post by: WhenLifeGivesYouLemons 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.
Title: Re: LUA Setting fighting styles
Post by: Reath 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.
Title: Re: LUA Setting fighting styles
Post by: MadmaN 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.