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


Author Topic: Russell, do as normal lua how to get boss Russell  (Read 1560 times)

0 Members and 1 Guest are viewing this topic.

Offline sjg6466

  • Newbie
  • *
  • Posts: 0
    • View Profile
Russell, do as normal lua how to get boss Russell
« on: February 14, 2013, 09:16:23 AM »
I have succeeded in making the bodyguard mode!So Russell, boss bodyguard, but I'd like to see made ​​out n Russell noticed ..What do I need to modify?

ImportScript("\\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(400) -- gives the player 200 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- teleports the player to the sidewalk outside the boys dorm
  local l_0_3 = 75
  local l_1_4, l_1_5, l_1_6 = PedGetPosXYZ(gPlayer) -- gets coordinates of the player on the map
  l_0_3 = PedCreateXYZ(75, l_1_4 + 1, l_1_5 + 1, l_1_6) -- create a ped (Russell) and spawn them near the player
  PedRecruitAlly(gPlayer, l_0_3, true) -- recruits the spawned ped as a bodyguard (local l_0_3 is assigned to model id 75 which is Russell)
end
 
MissionCleanup = function() -- mission cleanup function
end -- end statement
 
main = function() -- Main mission function
  repeat -- This makes the script run until the bodyguard is dismissed, attacked by the player or the player is busted
    Wait(0) -- wait 0 seconds
  until l_0_0 ~= false
  Wait(3000) -- wait 3 seconds
  MissionSucceed() -- ends mission
end


What should I do : (

deadpoolXYZ

  • Guest
Re: Russell, do as normal lua how to get boss Russell
« Reply #1 on: February 14, 2013, 10:47:54 AM »
I have succeeded in making the bodyguard mode!So Russell, boss bodyguard, but I'd like to see made ​​out n Russell noticed ..What do I need to modify?

ImportScript("\\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(400) -- gives the player 200 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- teleports the player to the sidewalk outside the boys dorm
  local l_0_3 = 75
  local l_1_4, l_1_5, l_1_6 = PedGetPosXYZ(gPlayer) -- gets coordinates of the player on the map
  l_0_3 = PedCreateXYZ(75, l_1_4 + 1, l_1_5 + 1, l_1_6) -- create a ped (Russell) and spawn them near the player
PedSetActionTree(l_0_3, "/Global/BOSS_Russell", "Act/Anim/BOSS_Russell.act")
  PedRecruitAlly(gPlayer, l_0_3, true) -- recruits the spawned ped as a bodyguard (local l_0_3 is assigned to model id 75 which is Russell)
end
 
MissionCleanup = function() -- mission cleanup function
end -- end statement
 
main = function() -- Main mission function
  repeat -- This makes the script run until the bodyguard is dismissed, attacked by the player or the player is busted
    Wait(0) -- wait 0 seconds
  until l_0_0 ~= false
  Wait(3000) -- wait 3 seconds
  MissionSucceed() -- ends mission
end


What should I do : (

The red code line gives him his boss fighting style. Editing the ide.img is another method.

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,423
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: Russell, do as normal lua how to get boss Russell
« Reply #2 on: February 15, 2013, 02:56:43 PM »
Again, wrong thread.
Move it to the questions.