Reply To: How to add Enities to Mafia 2 City

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

Bank Notes: 1,960
July 21, 2012 at 1:02 am #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()