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


Author Topic: A Little Help? :P LUA  (Read 3003 times)

0 Members and 1 Guest are viewing this topic.

Offline RSta

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
A Little Help? :P LUA
« on: May 05, 2014, 07:46:30 AM »
Hey guys i just want some help,i want to make the peds written on the script have those LUA command forever,but they only seem to work when i see them outside the boys dorm,for example(Darby possessed his BOSS_Darby in front of the boys dorm,but when i encounter him somewhere,he doesn't have his BOSS_Darby and only has his old P_Striker_A style,and same with the Jocks and Russell,they have their powerful punches at the beginning but later they end up having their old weak punches. ).Why is this?Do you need some code?Can someone help me?
ImportScript("//Libary//LibTable.lua")
ImportScript("//Libary//LibPed.lua")
local l_0_0 = false

MissionSetup = function()
  local l_1_0 = 270
  local l_1_1 = -110
  local l_1_2 = 6.4000000953674
  local Damon = nil
  local Ted = nil
  local Juri = nil
  local Luis = nil
  local Russell = nil
 
  PlayerSetHealth(900)
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  DisablePunishmentSystem(true)
  ClockSet(9000, 30)
  ClockSetTickRate(0.0060000000521541)
 
  TextPrintString("My Mod", 5, 1)
  Damon = PedCreateXYZ(12, l_1_0, l_1_1, l_1_2)
  PedSetDamageGivenMultiplier(Damon, 2, 6.00)
  PedMakeAmbient(Damon)
  Ted = PedCreateXYZ(19, l_1_0 +1, l_1_1 +1, l_1_2 +1)
  PedSetDamageGivenMultiplier(Ted, 2, 5.00)
  PedMakeAmbient(Ted)
  Juri = PedCreateXYZ(20, l_1_0 +2, l_1_1 +2, l_1_2 +2)
  PedSetDamageGivenMultiplier(Juri, 2, 6.00)
  PedMakeAmbient(Juri)
  Luis = PedCreateXYZ(16, l_1_0 +3, l_1_1 +3, l_1_2 +3)
  PedSetDamageGivenMultiplier(Luis, 2, 6.00)
  PedMakeAmbient(Luis)
  Russell = PedCreateXYZ(75, l_1_0 +4, l_1_1 +4, l_1_2 +4)
  PedSetDamageGivenMultiplier(Russell, 2, 6.00)
  PedMakeAmbient(Russell)
  Darby = PedCreateXYZ(37, l_1_0 +5, l_1_1 +5, l_1_2 +5)
  PedSetActionTree(Darby, "/Global/BOSS_Darby", "Act/Anim/BOSS_Darby.act")
  PedMakeAmbient(Darby)
 
 
end

MissionCleanup = function()
end

main = function()
  repeat
   Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end
 


Offline c00ld0c26

  • The D0c
  • Moderator
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: A Little Help? :P LUA
« Reply #1 on: May 05, 2014, 10:14:20 AM »
The game has this term which is called a "Ped" or "AI" if you want to call it.
The Ped's of Darby and Russell that you spawn are NOT the same ones you meet in free roam, so you ONLY change the style of the ones you spawned.
The game has its own unique spawning system for free roam, so it uses its default settings on those free roam peds.
There is a command that can override free roam ped's style, clique and MUCH MUCH more, but I cannot write it here due to a request from one of the modders not to share it yet.

Offline RSta

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: A Little Help? :P LUA
« Reply #2 on: May 05, 2014, 10:55:08 AM »
The game has this term which is called a "Ped" or "AI" if you want to call it.
The Ped's of Darby and Russell that you spawn are NOT the same ones you meet in free roam, so you ONLY change the style of the ones you spawned.
The game has its own unique spawning system for free roam, so it uses its default settings on those free roam peds.
There is a command that can override free roam ped's style, clique and MUCH MUCH more, but I cannot write it here due to a request from one of the modders not to share it yet.
Oh okay,so can u PM me or teach me how to properly write these code so the Peds or AI's that I spawned can permanently have those command codes?BTW the other day I saw u teaching someone how to make an AI's punch stronger,can u also tell me how to properly write it?
« Last Edit: May 05, 2014, 11:58:24 AM by RSta »

Offline c00ld0c26

  • The D0c
  • Moderator
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: A Little Help? :P LUA
« Reply #3 on: May 07, 2014, 12:27:13 AM »
I can't give the code for the style change per mantle as I promised a modder not to share it yet.
The other code I will give you when on my PC.

Offline RSta

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: A Little Help? :P LUA
« Reply #4 on: May 07, 2014, 01:07:52 AM »
I can't give the code for the style change per mantle as I promised a modder not to share it yet.
The other code I will give you when on my PC.
Okay thanks,if u can plz help me out with the  PedSetDamageGivenMultiplier so that they can have strong moves permanently.
« Last Edit: May 07, 2014, 07:00:23 AM by RSta »