How can generate object in a certain place. I just want to do this sort of bunker for survivors. Maybe there is some program like the map editor?
I need a code that allows you to walk on boxes
http://www.itsmods.com/forum/Thread-Rele...sions.html
Make an .cs called Extensions and paste the code from there (The extensions.cs code)
You can use this onplayerspawn or also onmapchange.
I like to use onmapchange, but I don't know why :p
The public override void onmapchange
CSHARP Code
public override void OnMapChange()
{
string map = GetDvar("mapname");
if (map == "mp_dome") // Choose your map here
{
//Carepackages here
}
}
Add this:
CSHARP Code
Entity entity1
= SpawnModel
("script_model",
"com_plasticcase_trap_friendly",
new Vector
(3724.289f, 4906.27f, 279.9418f
));
Than you add this line to make it solid (You can walk on boxes than)
CSHARP Code
Extensions.CloneBrushModelToScriptModel(entity1, Extensions.FindAirdropCrateCollisionId());