Raised This Month: $ Target: $400
 0% 

L4D2 Spawning Gnome[solved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fleepster99
Senior Member
Join Date: Apr 2010
Old 08-31-2010 , 12:52   L4D2 Spawning Gnome[solved]
Reply With Quote #1

Hey guys im trying to spawn a gnome and teleport it somewhere, now i know you can use "give gnome" to give one to a specific player but i want to spawn one and be able to account for it, so i can teleport him and do some good stuff to him.

Thanks for your help.
Fleepster99 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-31-2010 , 13:23   Re: L4D2 Spawning Gnome
Reply With Quote #2

If "give gnome" works, then I presume that you should try to spawn weapon_gnome.
FaTony is offline
Fleepster99
Senior Member
Join Date: Apr 2010
Old 08-31-2010 , 13:28   Re: L4D2 Spawning Gnome
Reply With Quote #3

Quote:
Originally Posted by FaTony View Post
If "give gnome" works, then I presume that you should try to spawn weapon_gnome.
Im not sure how i would use that could you elaborate please.
Fleepster99 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-31-2010 , 13:36   Re: L4D2 Spawning Gnome
Reply With Quote #4

CreateEntityByName.
FaTony is offline
Fleepster99
Senior Member
Join Date: Apr 2010
Old 08-31-2010 , 14:00   Re: L4D2 Spawning Gnome
Reply With Quote #5

Quote:
Originally Posted by FaTony View Post
CreateEntityByName.
Thanks Fatony it worked great, heres the code if anyone likes to spawn gnomes(or other entities) for fun reasons.

PHP Code:
decl Float:GnomePosition[3]={1,1,1};//where u want the gnome to spawn
        //PrintToChatAll("gnome should have spawned");
        
new Ent CreateEntityByName("weapon_gnome");
        
DispatchSpawnEnt );
        
TeleportEntityEntGnomePositionNULL_VECTORNULL_VECTOR); 
Fleepster99 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode