Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: DarbyHarringtonMind on June 29, 2013, 11:08:40 AM

Title: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: DarbyHarringtonMind on June 29, 2013, 11:08:40 AM
help me guys..... :D :D
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: c00ld0c26 on June 29, 2013, 12:08:01 PM
You mean sending Jimmy and peds into interors?
(Interors are places that are like, inside houses, inside the school ect..)
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: DarbyHarringtonMind on June 29, 2013, 12:11:05 PM
You mean sending Jimmy and peds into interors?
(Interors are places that are like, inside houses, inside the school ect..)



thats right,sir!!!!!

how do that sir???
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: c00ld0c26 on June 29, 2013, 12:13:52 PM
Sure thing.
But I need you to tell me exactly which interor u want the peds and Jimmy to go in.
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: DarbyHarringtonMind on June 29, 2013, 12:15:38 PM
Sure thing.
But I need you to tell me exactly which interor u want the peds and Jimmy to go in.


I want ....
peds and jimmy in hobo park sir....... :D
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: c00ld0c26 on June 29, 2013, 12:19:30 PM
Sure.
Since I dont memorize all the places ID's lemme find the Hobo park in Trigger.img then test a simple script that teleports me there and then answer to your question.
Problem is, that you need to get the Hobo's park Coords if you want to make the Ped's spawn there.
(Even though, I dont think it counts as interor)
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: c00ld0c26 on June 29, 2013, 01:03:07 PM
Ive done it.
command to spawn Jimmy there : AreaTransitionXYZ(0, 163, 18, 6.2859478)
Command to spawn a ped there :
Guy1 = PedCreateXYZ(6, 164, 18, 6.2859478)
About the second command dont forget to set up a local for Guy1 before u try this.
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: DarbyHarringtonMind on June 29, 2013, 01:12:02 PM
Ive done it.
command to spawn Jimmy there : AreaTransitionXYZ(0, 163, 18, 6.2859478)
Command to spawn a ped there :
Guy1 = PedCreateXYZ(6, 164, 18, 6.2859478)
About the second command dont forget to set up a local for Guy1 before u try this.

uhhh...
im sorry sir??
what mean about guy1 sir????
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: c00ld0c26 on June 29, 2013, 01:20:47 PM
Guy 1 is the Ped's name
for example, when u want to spawn a ped and later on do commands on him you write this:

local Guy1 = nil
local Guy2 = nil

then when u want to perform commands such as the ped attacks and stuff like that you do :

PedAttack(Guy1 , Guy2).
I will write you here the script I have made so you will learn better.

Script :

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
  local Guy1 = nil
  local Guy2 = nil
  local Guy3 = nil
  local Guy4 = nil
   AreaTransitionXYZ(0, -34, -92, 1.001125435)
  PlayerSetHealth(200) -- gives the player 200 health
Wait(1000)
AreaTransitionXYZ(0, 163, 18, 6.2859478)
Guy1 = PedCreateXYZ(6, 164, 18, 6.2859478)
end
 
MissionCleanup = function()
end -- end statement
 
main = function() -- Main mission function
 F_LoadAnimations()
end

After the Guy1 = PedCreateXYZ command which creates the ped where you want to can make him do stuff.

Like perform animations, attack, run, wander, ect...
Remember to put them AFTER the pedcreate command, and always make sure that his local name and the name before the = pedcreateXYZ thing, is always the same, or else it will crash.
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: DarbyHarringtonMind on June 29, 2013, 08:38:14 PM
Guy 1 is the Ped's name
for example, when u want to spawn a ped and later on do commands on him you write this:

local Guy1 = nil
local Guy2 = nil

then when u want to perform commands such as the ped attacks and stuff like that you do :

PedAttack(Guy1 , Guy2).
I will write you here the script I have made so you will learn better.

Script :

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
  local Guy1 = nil
  local Guy2 = nil
  local Guy3 = nil
  local Guy4 = nil
   AreaTransitionXYZ(0, -34, -92, 1.001125435)
  PlayerSetHealth(200) -- gives the player 200 health
Wait(1000)
AreaTransitionXYZ(0, 163, 18, 6.2859478)
Guy1 = PedCreateXYZ(6, 164, 18, 6.2859478)
end
 
MissionCleanup = function()
end -- end statement
 
main = function() -- Main mission function
 F_LoadAnimations()
end

After the Guy1 = PedCreateXYZ command which creates the ped where you want to can make him do stuff.

Like perform animations, attack, run, wander, ect...
Remember to put them AFTER the pedcreate command, and always make sure that his local name and the name before the = pedcreateXYZ thing, is always the same, or else it will crash.



Thanks sir!! :D :D
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: c00ld0c26 on June 29, 2013, 08:44:56 PM
No problem. :D
Title: Re: how to send peds into place?, and how to send Jimmy into peds are sent?
Post by: Evolution on June 29, 2013, 09:21:39 PM
thats right,sir!!!!!
how do that sir???

sir....... :D


im sorry sir?? sir????


Thanks sir!! :D :D


............................

(http://fc02.deviantart.net/fs70/f/2013/091/1/7/feel_like_a_sir_in_hd_by_lemmino-d6023aa.png)