Home / Forums / Modders Corner / Mafia Editing / Mod Help / How to add Enities to Mafia 2 City

How to add Enities to Mafia 2 City

Home / Forums / Modders Corner / Mafia Editing / Mod Help / How to add Enities to Mafia 2 City

2 replies
13 years, 6 months ago
#6748

Hi There! I Was wondering if I Could add NPC’s and Cars in the city.

 

Thanks!

13 years, 6 months ago
#14036

You mean your streets are empty or you want to add more ?

 

If it is empty because you are in a fr mode, look out in menu E

traffic 40 or 50’s, this will add the traffic to your map.

 

Now if you want more cars or pedestrian, the following self explanatory lua command exist:

 

game.traffic :P opulate(xxx
) –> Pedestrian

game.traffic:SetNumCars(xxx
)

game.traffic:SetNumStaticCars(xxx
)

xxx
= 0…100

 

or for specific entities:

game.entitywrapper:GetEntityByName(“ENTITY_NAME”):Activate()

  • You must be logged in to reply to this topic.