Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: gamerzod on May 10, 2015, 10:18:42 AM

Title: Fighting Style
Post by: gamerzod on May 10, 2015, 10:18:42 AM
How do I change fighting style for ped that I create in bully from lua?
after I set pedcreate, what code should I asign to it?
for basic fighting style and boss fighting style to a ped?
Title: Re: Fighting Style
Post by: deadpoolXYZ on May 10, 2015, 11:11:58 AM


PEDNAME= PedCreateXYZ(PED.ID, X, Y, Z)
PedSetActionTree(PEDNAME, "/Global/FIGHTINGSTYLENAME", "Act/Anim/FIGHTINGSTYLENAME")

Example:
Code: [Select]
Sheldon = PedCreateXYZ(66,-507,322,31) -- Creates the ped

PedSetActionTree(Sheldon, "/Global/B_Striker_A", "Act/Anim/B_Striker_A") -- Change fighting style
Title: Re: Fighting Style
Post by: gamerzod on May 16, 2015, 07:41:58 AM
I get the other problem
why when I set the luis jock fighting style to ped
"/Global/J_Grappler_A,"Act/Anim/J_Grappler_A.act",
when I am on player faction, the ped that spawn with luis jock fight style can't hit me, it can only hit me when i change jimmy faction
and are there any way to make the ped hit me without using the lua code to changing my faction to bullies or other faction
Title: Re: Fighting Style
Post by: gamerzod on May 21, 2015, 07:22:01 AM
help me
Title: Re: Fighting Style
Post by: deadpoolXYZ on May 21, 2015, 08:21:24 AM
Script spawned peds can't harm you if have 100% respect with them.

Use this: PedSetTypeToTypeAttitude(2, 13, 2)
Title: Re: Fighting Style
Post by: gamerzod on May 21, 2015, 08:24:33 AM
thank you
Title: Re: Fighting Style
Post by: GaryHarrington on May 24, 2015, 10:04:33 PM
Script spawned peds can't harm you if have 100% respect with them.

Use this: PedSetTypeToTypeAttitude(2, 13, 2)

or by a simple way... search attitude.dat in config>dat ... change the faction respect from adore to another (abhor,averse,dispassionate, or dig) ... i forget the number of player....search it by yourself if you want it ._.
Title: Re: Fighting Style
Post by: deadpoolXYZ on May 24, 2015, 10:18:16 PM
Script spawned peds can't harm you if have 100% respect with them.

Use this: PedSetTypeToTypeAttitude(2, 13, 2)

or by a simple way... search attitude.dat in config>dat ... change the faction respect from adore to another (abhor,averse,dispassionate, or dig) ... i forget the number of player....search it by yourself if you want it ._.

The attitude.dat method doesn't work if you beat the game since it gets overriden by another script that makes everyone like Jimmy.
Imo the script method is cleaner.
Title: Re: Fighting Style
Post by: GaryHarrington on May 25, 2015, 02:04:44 AM
Script spawned peds can't harm you if have 100% respect with them.

Use this: PedSetTypeToTypeAttitude(2, 13, 2)

or by a simple way... search attitude.dat in config>dat ... change the faction respect from adore to another (abhor,averse,dispassionate, or dig) ... i forget the number of player....search it by yourself if you want it ._.

The attitude.dat method doesn't work if you beat the game since it gets overriden by another script that makes everyone like Jimmy.
Imo the script method is cleaner.

to PLAYER it ain't work but to another ped , this method still work