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


Author Topic: how to send peds into place?, and how to send Jimmy into peds are sent?  (Read 4104 times)

0 Members and 4 Guests are viewing this topic.

Offline DarbyHarringtonMind

  • XX
  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
  • Move forward, Don't look back........
    • View Profile
help me guys..... :D :D

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
You mean sending Jimmy and peds into interors?
(Interors are places that are like, inside houses, inside the school ect..)

Offline DarbyHarringtonMind

  • XX
  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
  • Move forward, Don't look back........
    • View Profile
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???

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Sure thing.
But I need you to tell me exactly which interor u want the peds and Jimmy to go in.

Offline DarbyHarringtonMind

  • XX
  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
  • Move forward, Don't look back........
    • View Profile
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

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
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)

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
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.
« Last Edit: June 29, 2013, 01:09:11 PM by c00ld0c26 »

Offline DarbyHarringtonMind

  • XX
  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
  • Move forward, Don't look back........
    • View Profile
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????

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
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.

Offline DarbyHarringtonMind

  • XX
  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
  • Move forward, Don't look back........
    • View Profile
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

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
No problem. :D