spawn object
#1
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?
Reply

#2
(01-02-2013, 10:45)SaviouR9966 Wrote: 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?

Code:
Entity ent1 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(3724.289f, 4906.27f, 279.9418f));
Reply

#3
I need a code that allows you to walk on boxes
Reply

#4
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
Code:
public override void OnMapChange() { string map = GetDvar("mapname"); if (map == "mp_dome") // Choose your map here { //Carepackages here } }

Add this:
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)

Code:
Extensions.CloneBrushModelToScriptModel(entity1, Extensions.FindAirdropCrateCollisionId());
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation [Request] Random Weapon At Spawn Scripts18 3 6,797 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Spawn Message Playing on Respawn? Killjoy 7 7,324 07-11-2013, 14:53
Last Post: Killjoy
  [Release] Spawn Polygons and Pyramids Yamato 6 6,687 06-20-2013, 12:30
Last Post: Yamato
  Question on how to "Spawn" a flying rocket as a player? akillj 8 8,501 06-04-2013, 01:54
Last Post: rotceh_dnih
  Help pickup mod + spawn fx m4gicaL 1 3,705 03-07-2013, 17:52
Last Post: tadej
  Help Rotate an object, getting it to stand? JustDoingThisShit 2 3,187 02-10-2013, 00:50
Last Post: JustDoingThisShit
  Help No more free spawn influencers! JustDoingThisShit 0 5,791 02-03-2013, 20:21
Last Post: JustDoingThisShit
  W@W: Making player spawn with a custom default class. koil 9 7,532 01-13-2013, 12:10
Last Post: koil
  Help Spawn on predefined points problem islamsaab 2 3,918 09-29-2012, 21:23
Last Post: islamsaab
  Help Spawn Weapon Models Ich1994 3 4,645 07-15-2012, 14:20
Last Post: archit

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.