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


Author Topic: Spawning Entity's  (Read 1983 times)

0 Members and 1 Guest are viewing this topic.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Spawning Entity's
« 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.

Offline Rambo7

  • "Awesomely Kick-Ass Troll"
  • Full Member
  • ***
  • Posts: 404
  • Gender: Male
  • #ZAMBess
    • View Profile
    • My ModDB Page
Re: Spawning Entity's
« Reply #1 on: November 02, 2015, 01:36:11 PM »
See this cooldoc thread,
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)

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Spawning Entity's
« Reply #2 on: November 02, 2015, 10:16:26 PM »
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

Offline Rambo7

  • "Awesomely Kick-Ass Troll"
  • Full Member
  • ***
  • Posts: 404
  • Gender: Male
  • #ZAMBess
    • View Profile
    • My ModDB Page
Re: Spawning Entity's
« Reply #3 on: November 03, 2015, 12:00:22 AM »
Yeah, I know JumpFun_Test,
But you can't do much thing with it, since that thing don't have any collision

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: Spawning Entity's
« Reply #4 on: November 03, 2015, 03:01:47 PM »
yeah u can walk thru it