Bully-Board
Bully Modding Section => Bully Modding => Bully Modding Archives => Topic started by: davis42 on August 24, 2013, 04:18:24 PM
-
I'd like to see jimmy with some of the techniques which only npc's can humiliate with. For an example, the head rubbing and maybe 2 more.
-
I have the animations but I don't know if they are considered as "fighting animations", since Rise to Honor doesn't want anyone to share them.
By the way when you activate them, the ped you were locking will humilliate you, not you to him.
-
He might make a mod for them later or something, just guessing. Btw that's crazy because the ped will do it to you? Unbelievable! Thanks a ton for the info.
-
Well, action nodes can be used but as u said the Ped will be the humiliator, hmmm, there might be a way around this but I got no clue.
-
Get the ped you lock onto and make him do the node instead of the player.
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
PedSetActionNode(TargetPed, i dont have the node so you do this part)
end
-
Get the ped you lock onto and make him do the node instead of the player.
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
PedSetActionNode(TargetPed, i dont have the node so you do this part)
end
Why "TargetPed > 0"?
And why "IsbuttonBeingPressed" instead of "IsbuttonPressed"?
I haven't touched a lua code in like in 2 months.
-
Get the ped you lock onto and make him do the node instead of the player.
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
PedSetActionNode(TargetPed, i dont have the node so you do this part)
end
Why "TargetPed > 0"?
And why "IsbuttonBeingPressed" instead of "IsbuttonPressed"?
I haven't touched a lua code in like in 2 months.
TargetedPed >0 because the number 1 equels "on" which actives the command.
IsButtonBeingPressed is set to avoid the animation to restart when holding the button and it only work again if the player leaves the button and presses it again.
-
Get the ped you lock onto and make him do the node instead of the player.
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
PedSetActionNode(TargetPed, i dont have the node so you do this part)
end
Why "TargetPed > 0"?
And why "IsbuttonBeingPressed" instead of "IsbuttonPressed"?
I haven't touched a lua code in like in 2 months.
TargetedPed >0 because the number 1 equels "on" which actives the command.
IsButtonBeingPressed is set to avoid the animation to restart when holding the button and it only work again if the player leaves the button and presses it again.
Indeed.
But justifying on the > 0 part, if your not locking onto any ped then it returns a value of -1. If you try to use it when your not locked onto anybody, the game will crash.