FoobyZeeky
Newbie
- Joined
- Apr 9, 2010
- Messages
- 7
- Reaction score
- 0
I know you can create various entities with the give command and use their inputs with ent_fire, but is there any way to set their keyvalues?
For example, I used give env_headcrabcanister to spawn a headcrab canister below me, and then I used ent_setname hcc and ent_fire hcc firecanister to fire it. But when I used the input spawnheadcrabs 5 afterwards, when the canister had impacted, nothing appeared; so I wonder if I had to set the HeadcrabType (I think that's what its called) keyvalue before. So, is it possible to set a keyvalue using the console? Any help would be greatly appreciated.
Edit: I checked VDC and the keyvalue is HeadcrabType and the options are 0 (normal headcrab), 1 (fast headcrab), and 2 (poison headcrab).
For example, I used give env_headcrabcanister to spawn a headcrab canister below me, and then I used ent_setname hcc and ent_fire hcc firecanister to fire it. But when I used the input spawnheadcrabs 5 afterwards, when the canister had impacted, nothing appeared; so I wonder if I had to set the HeadcrabType (I think that's what its called) keyvalue before. So, is it possible to set a keyvalue using the console? Any help would be greatly appreciated.
Edit: I checked VDC and the keyvalue is HeadcrabType and the options are 0 (normal headcrab), 1 (fast headcrab), and 2 (poison headcrab).