Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: UltimateGamer9 on December 19, 2015, 05:41:25 AM
-
how do i set up the full styles without bugs or anything. example:- deadpool's not another selector full styles has no bug. so i wanna make player 2(from local multiplayer mod) that way. i want player 2 with jimmy's style with no bugs. can you help me out if this is possible?
-
Be more specific about the bugs your mod has.
-
what bugs are u talking about
-
what bugs are u talking about
like when u make your own custom style, it definitely has a bug. example:- when u press the binded button repeatedly it will keep doing that action node repeatedly. but it doesnt have that in not another selector. not only that, player 2 also fights very fast. how do i fix those 2?
-
You need to make sure you're not already playing the node.
if IsButtonBeingPressed(6,0) and not PedIsPlaying(gPlayer,"node",true) then
PedSetActionNode(gPlayer,"node","file")
end
Or like I told you before, this will make sure you're not playing any action beside the idle/moving ones.
if PedMePlaying(gPlayer,"Default_KEY") then
-- code here
end
-
You need to make sure you're not already playing the node.
if IsButtonBeingPressed(6,0) and not PedIsPlaying(gPlayer,"node",true) then
PedSetActionNode(gPlayer,"node","file")
end
Or like I told you before, this will make sure you're not playing any action beside the idle/moving ones.
if PedMePlaying(gPlayer,"Default_KEY") then
-- code here
end
ok i understand
-
ExecuteActionNode mate. So the player is forced to complete the selected node before doing another one.
That's very simple modding, lol.
@DaBOSS Why make it so hard when you can just use the code above?
-
ExecuteActionNode actually just makes sure you're not already playing the node you're setting as well, except it also makes your script wait. It's not really "hard" to do this either.
However another important difference is ExecuteActionNode will only help you make sure you don't set a node that you're already playing. It does not however prevent you from doing actions while being hit or doing other actions, for that you will need to check that the player is playing the "Default_KEY" node.