• 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));
[-] The following 1 user says Thank You to 8q4s8 for this post:
  • SaviouR9966
  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]
[-] The following 1 user says Thank You to 99IRock for this post:
  • SaviouR9966
  Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)