News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: The action nodes cannot work without Super Mod :blank:  (Read 2177 times)

0 Members and 1 Guest are viewing this topic.

Offline Enderman

  • What i'm doing right now?
  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • I'm no longer do mods for Bully ...
    • View Profile
    • bully-board.com
The action nodes cannot work without Super Mod :blank:
« on: November 02, 2014, 04:20:43 AM »
Hey i had a code of my Darby Boss Style but it can't work without using Super Mod :
mportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
 
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
  local l_1_0 = 270 -- X coords
  local l_1_1 = -110 -- Y coords
  local l_1_2 = 6.4000000953674 -- Z coords
 
  PlayerSetHealth(5000) -- gives the player 5000 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  SoundPlayStream("MS_DishonorableFight.rsm", 0.69999998807907))
  TextPrintString("Darby Full Boss Style", 4, 1)
  Wait("5000")
  TextPrintString("By kovn123vn", 4, 1)
 
end
 
 F_MissionSetup = function()

  LoadAnimationGroup("BOSS_Darby")
  LoadAnimationGroup("P_Striker_A")
  LoadAnimationGroup("P_Striker_B")
  LoadActionTree("P_Striker_A")
  LoadActionTree("P_Striker_B")
  LoadActionTree("BOSS_Darby")
 
  PlayerSetControl(1)
 
  DisablePunishmentSystem(false
 
  CameraFollowPed(gPlayer)
 
  ClockSet(8, 30)
 
  ClockSetTickRate(0.0060000000521541)
 
  LaunchScript("SObjTest.lua")

end

MissionCleanup = function()
end -- end statement
 
main = function()
  F_MissionSetup()
  gMissionRunning = true
  while gMissionRunning do
  if IsButtonPressed(15,0) then
  PedSetActionTree(gplayer, "/Global/P_Striker_A", "Act/Anim/P_Striker_A.act")
  elseif IsButtonPressed(3,0) then
  PedSetActionTree(gPlayer, "/Global/P_Striker_B", "Act/Anim/P_Striker_B.act")
  elseif IsButtonPressed(10,0) and IsButtonPressed(8,0) then
  PedSetActionTree(gplayer, "/Global/BOSS_Darby", "Act/Anim/BOSS_Darby.act")
  elseif IsButtonPressed(1,0) then
  PedSetActionNode(gPlayer, "/Global/BOSS_Darby/Offense/Short/Grapples/HeavyAttacks/Catch_Throw", "Act/Anim/BOSS_Darby.act")
  elseif IsButtonPressed(0,0) then
  PedSetActionNode(gPlayer, "/Global/BOSS_Darby/Offense/Short/Strikes/HeavyAttacks", "Act/Anim/BOSS_Darby.act")
  elseif IsButtonPressed(12,0) then
  PedSetActionNode(gPlayer, "/Global/P_Striker_A/Offense/Short/Strikes/LightAttacks", "Act/Anim/P_Striker_A.act")
  elseif IsButtonPressed(6,0) and IsButtonPressed(7,0) then
  PedSetActionNode(gplayer, "/Global/Actions/Offense/RunningAttacks/RunningAttacksDirect", "Act/Anim/GlobalActions.act")
  elseif IsButtonPressed(2,0) then
  PedSetActionTree(gplayer, "/Global/Player", "Act/Anim/Player.act")
  UpdateTextQueue()
    Wait(0)
   end
  end
end

I pressed the buttons in the code but is nothing look like this code is a trash so can anyone tell me about the error  :'(

Offline Shrimp

  • Sr. Member
  • ***
  • Posts: 514
  • Gender: Male
  • your official b-b's chav. wag wan.
    • View Profile
Re: The action nodes cannot work without Super Mod :blank:
« Reply #1 on: July 09, 2015, 05:04:18 PM »
what's with the amount of "end's" at the end?

deadpoolXYZ

  • Guest
Re: The action nodes cannot work without Super Mod :blank:
« Reply #2 on: July 09, 2015, 05:11:13 PM »
İm not a pro on lua but maybe try to create a function named TL_Buttons = function() then put all nodes in there.Under main function put code CreateThread("TL_Buttons") maybe works then
sorry for bad english

Dude check the date of the last post before replying, this is 8 months old.