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


Author Topic: Code work ?  (Read 1668 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
Code work ?
« on: July 15, 2014, 02:54:27 AM »
hey guy can this code work ?
GlobalImportScript("SObjTest.lua")
ImportScript("Library/LibTable.lua")
ImportScript("SZone.lua")

  l_0_0 = 60

MissionSetup = function()
  local l_1_0 = 270 -- X coords
  local l_1_1 = -110 -- Y coords
  local l_1_2 = 6.4000000953674 -- Z coords
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)

  PedSetTypeToTypeAttitude(1, 13, 2)
  PedSetTypeToTypeAttitude(2, 13, 2)
  PedSetTypeToTypeAttitude(3, 13, 1)
  PedSetTypeToTypeAttitude(4, 13, 4)
  PedSetTypeToTypeAttitude(5, 13, 1)
  PedSetTypeToTypeAttitude(6, 13, 2)
  PedSetTypeToTypeAttitude(11, 13, 2)
 
  SoundPlayStream("MS_FightingJohnnyVincentBossFight.rsm", 0.69999998807907)
 
 
  PlayerSetHealth(2000)
 
  end

F_MissionSetup = function()

  LoadActionTree("J_Ted")
  LoadActionTree("J_Damon")
  LoadActionTree("Player")
 
  PlayerAddMoney(9999999, true)
  PlayerSetControl(1)
 
  CameraFollowPed(gPlayer)
 
  ClockSet(8, 30)
 
  ClockSetTickRate(0.0060000000521541)
 
  LaunchScript("SObjTest.lua")

end



MissionCleanup = function()
  ClearTextQueue()
  EnablePOI()
  gMissionRunning = false
  shared.gMissionEventFunction = nil
  WeatherRelease()
  PlayerSetControl(1)
  PlayerSetPunishmentPoints(0)
end



main = function()
  F_MissionSetup()
  gMissionRunning = true
  while gMissionRunning do
  if IsButtonPressed(15,0) then
  PedSetActionTree(gPlayer, "/Global/J_Ted", "Act/Anim/J_Ted")
  elseif IsButtonPressed(14,0) then
  PedSetActionNode(gPlayer, "/Global/J_Damon", "Act/Anim/J_Damon.act")
  elseif IsButtonPressed(3,0) then
  PedSetActionNode(gPlayer, "/Global/Actions/Offense/RunningAttacks/RunningAttacksDirect", "Act/Globals/GlobalActions.act")
  elseif IsButtonPressed(0,0) then
  PedSetActionTree(gPlayer, "/Global/Player", "Act/Anim/Player.act")
  end
  UpdateTextQueue()
    Wait(0)
  end

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Code work ?
« Reply #1 on: July 15, 2014, 12:16:22 PM »
Can you explain whats not working in your mod?

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
Re: Code work ?
« Reply #2 on: July 15, 2014, 10:37:39 PM »
When i replace the ArcRace1.lur i play the machine at the boy dorm i press c and my code is ted boss style but it i play bullies style i'm very sorry bad english because i'm vietnamese

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: Code work ?
« Reply #3 on: July 17, 2014, 01:45:40 AM »
You sure? The code looks fine. Maybe you had a IDE of you using the bullies style?

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
Re: Code work ?
« Reply #4 on: July 17, 2014, 04:29:07 AM »
Yeah i has damon ide is that wrong