Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Masterreys100 on October 26, 2014, 05:07:04 PM
-
I Need Help Spawning Peds At Locations
-
I would like you to take a look at this tutorial:
http://www.bully-board.com/index.php?topic=18725.0 (http://www.bully-board.com/index.php?topic=18725.0)
It shows very clear how to spawn peds.
PedCreateXYZ(ID, X,Y,Z) -
This command will create a ped where that you tell it to. Replace the ID with the number ID of the character you want to spawn. For example : PedCreateXYZ(33, X,Y,Z)
This will spawn Bif. Also make sure you write the local coords you have setted or the actuall coords in it :PedCreateXYZ(33, l_1_0, l_1_1, l_1_2)
I recommend that you will write first under the MissionSetup = Function() this : local Bif = Nil and then when you want to spawn him write it like this :
Bif = PedCreateXYZ(33, l_1_0, l_1_1, l_1_2)
(Copyed from c00l's tutorial)
You can use Supermod or mad's cord grabber to get the location where you want to spawn them.
-
My tutorial really needs some fixes at certain places to make it more noob friendly, and Mick just found one of those.
Anyway, the l_1_0 and the rest can be replaced with any number, and you get those numbers from the coord grabber by MadmaN.
-
You use the command PedCreateXYZ .