function main()
while true do
if IsButtonBeingPressed(9,0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
ExecuteActionNode(gPlayer,"/Global/J_Damon/Offense","Act/Anim/J_Damon.act")
elseif PedIsValid(PedGetGrappleTargetPed(gPlayer)) and PedIsPlaying(gPlayer,"/Global/J_Damon/Offense","Act/Anim/J_Damon.act") and PedGetNodeTime(gPlayer) > 1 then
PedSetActionNode(gPlayer,"/Global/Actions/Grapples/Mount/MountIdle","Act/Globals.act")
end
Wait(0)
end
end