how to use the "spawn" command Created 17 years ago2007-06-03 13:51:12 UTC by radu_dark_maper radu_dark_maper

Created 17 years ago2007-06-03 13:51:12 UTC by radu_dark_maper radu_dark_maper

Posted 17 years ago2007-06-03 13:51:12 UTC Post #224296
i saw that in hl there is a spawn command,but any thing i type after it apears spawn not valid!,can some one tell me how to use this command?
Posted 17 years ago2007-06-03 14:31:33 UTC Post #224300
There is no "spawn" command in hl. You can however spawn hgrunts using impulse 76.
ChickenFist ChickenFist<Witty Title>
Posted 17 years ago2007-06-03 14:36:54 UTC Post #224301
Using the give command with monster names (give monster_headcrab) spawns a monster.
Daubster DaubsterVault Dweller
Posted 17 years ago2007-06-03 15:00:08 UTC Post #224303
Note that when using the give monster_... monster command, HL can crash if you try to spawn a monster that is not in the precache list. In other words: you can only spawn monster that are currently in the map. Lets say you're in a map with headcrabs, alien slaves and zombies, then these are the only monsters you can spawn, if you try to spawn other monsters, HL will crash.
Posted 17 years ago2007-06-03 15:44:59 UTC Post #224309
Should work.
Try this:

alias x give env_spark
bind "x" "x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x;x"

xD!
Posted 17 years ago2007-06-03 16:41:56 UTC Post #224317
Lol. Edict crash.
Rimrook RimrookSince 2003
Posted 17 years ago2007-06-04 23:30:01 UTC Post #224446
thks,but there is though the command spawn,i asure you,baybe it doesn't work,or....it was left from the quake engine
Posted 17 years ago2007-06-05 04:40:40 UTC Post #224471
You're probably confused, there's no spawn command in HL. Not until you install Entmod, which is only used for game servers, not for singleplayer.
Posted 17 years ago2007-06-05 14:49:09 UTC Post #224511
what ever,another question,what's the precache thing anyway?what does it do?oh and if i try to "spawn" a non prechached monster it apears prechaching can only be done in SPAWN functions
Posted 17 years ago2007-06-05 15:23:34 UTC Post #224513
Dude, i explained what precache is a few posts up. :zonked:
Posted 17 years ago2007-06-06 03:46:56 UTC Post #224547
you said only that the monsters have to be precached,but not what precached means
Posted 17 years ago2007-06-06 03:54:21 UTC Post #224549
HL can crash if you try to spawn a monster that is not in the precache list. In other words: you can only spawn monster that are currently in the map. Lets say you're in a map with headcrabs, alien slaves and zombies, then these are the only monsters you can spawn, if you try to spawn other monsters, HL will crash.
Basically 'Precached' means that it is already in the map.
monster_urby monster_urbyGoldsourcerer
Posted 17 years ago2007-06-06 04:25:33 UTC Post #224550
mapers being a complete ass. listen to muzz, you dumb fuck.
Penguinboy PenguinboyHaha, I died again!
Posted 17 years ago2007-06-06 04:30:58 UTC Post #224551
Yes, precache is like putting something in the memory for later use. The way i see it: The game creates a package with a headcrab inside and puts that in the memory. Later when, the game needs to spawn/create/show a headcrab, it calls that package. But what will happen if that package cannot be found? Exactly, the game will crash, because the game is trying to spawn/create/show a monster that is not loaded into the memory and so it cannot be created, resulting in a "Not in precache function" error.
Posted 17 years ago2007-06-06 04:56:03 UTC Post #224552
Careful Muzz, he'll be asking what memory is next. :lol:
monster_urby monster_urbyGoldsourcerer
Posted 17 years ago2007-06-06 05:10:50 UTC Post #224553
what is memory?
Posted 17 years ago2007-06-06 05:34:09 UTC Post #224555
TROLL ALERT
Penguinboy PenguinboyHaha, I died again!
Posted 17 years ago2007-06-06 05:35:24 UTC Post #224556
Sorry, that was me, could'nt resist. :lol:
Posted 17 years ago2007-06-06 05:41:22 UTC Post #224557
you can do that? :o
Penguinboy PenguinboyHaha, I died again!
Posted 17 years ago2007-06-06 06:00:33 UTC Post #224559
Sorry, that was me, could'nt resist.
Jesus! You nearly gave me a heart attack!
monster_urby monster_urbyGoldsourcerer
Posted 17 years ago2007-06-06 06:29:34 UTC Post #224564
Why?
monster_urby monster_urbyGoldsourcerer
Posted 17 years ago2007-06-06 06:33:55 UTC Post #224565
Haha, Muzz is abusing powers... the GOOD WAY!
Strider StriderTuned to a dead channel.
Posted 17 years ago2007-06-06 06:44:21 UTC Post #224567
Gheh.

Ok, back on topic. :)
Posted 17 years ago2007-06-07 09:43:45 UTC Post #224658
would it be possible to use the give command to spawn a light in a dark area? I haven't had a chance to try it yet.
Alabastor_Twob Alabastor_Twobformerly TJB
Posted 17 years ago2007-06-07 10:21:42 UTC Post #224661
You might, but you cannot provide the properties of it, so it may spawn, but you won't see any light.
Posted 17 years ago2007-06-07 10:56:11 UTC Post #224664
Give works only with monsters and weapons as far as I've tried. Spawning some entity, that needs keyvalues to work properly usually crashes the game.
Daubster DaubsterVault Dweller
Posted 17 years ago2007-06-07 14:54:14 UTC Post #224682
how, what the...i didn't posted that, comon you think i'm stupid to not know what memoryu is, who did that, and how???

oh forum moderator, is that legal anyway,i mean post for another person, like you could use this to ban some one, like post instead of him, a bad thing and you use it like a acusation, it suck, didn't you know, with great powers come great responsabilities
Posted 17 years ago2007-06-07 15:00:54 UTC Post #224684
Yeah ok, its just a one time joke.
But the point is: there's no spawn command in HL other than the "give something_something" command.

If you have other questions, make a new thread.
You must be logged in to post a response.