Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: AlphaTech on November 02, 2015, 12:34:54 PM
-
I know I might've asked this before but I know how to spawn vehicles like car's and bikes but I wanted to know how to spawn barriers or tree's and such things or make them appear to be destroyed or knocked over. I've seen Swegta and Rambo do this in their video's and still have no clear explanation on how to do this. If someone can give me a tutorial or depiction on how to do this that would be pretty neat.
-
See this cooldoc thread,
https://www.bully-board.com/index.php?topic=18725.msg315448#msg315448 (https://www.bully-board.com/index.php?topic=18725.msg315448#msg315448)
CreatePersistentEntity("ENTITY NAME", X,Y,Z, ROTATION, AREA CODE )
Entity name = you must search this from world.img
Rotation = from 0 - 360
for eg.
CreatePersistentEntity("ToolBox", 270, -110, 7, 180, 0)
-
ANOTHER NOTE FOR WHEN SPAWNING
this is an issue i've ran into myself. ALWAYS REMEMBER the difference between the "DPI_" and the "DPE_" at the beginning of certain .nif files in World.img.
the "E" in "DPE" is obviously for Exterior, and the "I" in "DPI" is for Interior.
What this means, is the .nif's beginning with "DPE" can only be spawned in the EXTERIOR, whilst the "DPI"'s can only be spawned in interiors.
also, you can only spawn the .nif files from world.img, as they are the actual models, and the .nft is simply an archive which holds the textures that are USED to color the .nft(model).
and from what i've tried, spawning pedestrian models this way doesn't work. you still need PedCreatePoint or PedCreateXYZ.
and as for models such as JunkCarA and JumpFun_Test are normal, and the JumpFun_Test is a really cool. spawn it, and you'll find out what it is. :P
-
Yeah, I know JumpFun_Test,
But you can't do much thing with it, since that thing don't have any collision
-
yeah u can walk thru it