Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
CSHARP Code
  1. public override void OnMapChange()
  2. {
  3. string map = GetDvar("mapname");
  4.  
  5. if (map == "mp_dome") // Choose your map here
  6. {
  7. //Carepackages here
  8. }
  9. }


Add this:
CSHARP Code
  1. 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
  1. 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 4,431 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Spawn Message Playing on Respawn? Killjoy 7 4,777 07-11-2013, 14:53
Last Post: Killjoy
  [Release] Spawn Polygons and Pyramids Yamato 6 4,181 06-20-2013, 12:30
Last Post: Yamato
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,088 06-04-2013, 01:54
Last Post: rotceh_dnih
  Help pickup mod + spawn fx m4gicaL 1 2,481 03-07-2013, 17:52
Last Post: tadej
  Help Rotate an object, getting it to stand? JustDoingThisShit 2 1,858 02-10-2013, 00:50
Last Post: JustDoingThisShit
  Help No more free spawn influencers! JustDoingThisShit 0 4,918 02-03-2013, 20:21
Last Post: JustDoingThisShit
  W@W: Making player spawn with a custom default class. koil 9 5,108 01-13-2013, 12:10
Last Post: koil
  Help Spawn on predefined points problem islamsaab 2 2,487 09-29-2012, 21:23
Last Post: islamsaab
  Help Spawn Weapon Models Ich1994 3 3,121 07-15-2012, 14:20
Last Post: archit

Forum Jump:


Users browsing this thread:
1 Guest(s)

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