Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Enderman on September 09, 2014, 05:14:39 AM
-
How to block :)
-
The lock on button. (duh)
-
I think he's asking on how to block without using a weapon, whilst using a different fighting style.
-
Talk about "Last request"
Just use Player style
-
He should be more specific.
I'm pretty sure there is an action node for blocking. The same answer to all your requests, there is an action node for it.
-
I tried using the blocking action node for Russell Mod, but it got buggy and interfered with the rest of my binded nodes and the fighting style.
-
Use PedSetActionNode for the block, and ExecuteActionNode for the moves. That may work...
-
Like this PedSetActionTree(gPlayer, "/Global/Player", "Act/Anim/Player.act") :)
-
But i don't know ExecuteActionNode is :(
-
if IsButtonBeingPressed(10,0) then
PedSetActionNode(gPlayer, INSERT BLOCKING ACTION NODE HERE)
elseif IsButtonBeingPressed(6,0) then
ExecuteActionNode(gPlayer, INSERT ATTACK #1 HERE)
elseif IsButtonBeingPressed(9,0) then
ExecuteActionNode(gPlayer, INSERT GRAPPLE MOVE HERE)
end
I don't know the nodes, but there is a template you can fill in if you obtain the action nodes. Not 100% sure it will work but hopefully it will.
-
But i don't know ExecuteActionNode is :(
It's almost the same thing as PedSetActionNode.
-
It works different though.
PedSetActionNode will SET the action node, no matter what the ped is doing at the moment.
ExecuteActionNode will EXECUTE an ENTIRE action node before letting the ped do anything else.
Also ExecuteActionNode will crash the script if the node specified is invalid. PedSetActionNode will just do nothing if the node is invalid.