Raised This Month: $ Target: $400
 0% 

Spawn a model and add sprites to it


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crazy.cipry
Member
Join Date: Dec 2008
Location: Romania
Old 12-04-2010 , 10:05   Spawn a model and add sprites to it
Reply With Quote #1

How can I spawn randomly on the map a model? I want to spawn a Christmas tree and put some flashing leds ( like the bomb's led) on it. Is it possible?

Last edited by crazy.cipry; 12-04-2010 at 10:13.
crazy.cipry is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 12-04-2010 , 12:03   Re: Spawn a model and add sprites to it
Reply With Quote #2

yeah ... spawn an entity , with ur tree model ... or create a custom tree model that flashes , and then spawn an entity and animate it
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
crazy.cipry
Member
Join Date: Dec 2008
Location: Romania
Old 12-04-2010 , 12:06   Re: Spawn a model and add sprites to it
Reply With Quote #3

Quote:
Originally Posted by SaM.ThE.MaN View Post
yeah ... spawn an entity , with ur tree model ... or create a custom tree model that flashes , and then spawn an entity and animate it
But how? Can you give me a code, or a tutorial please?
crazy.cipry is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 12-04-2010 , 12:51   Re: Spawn a model and add sprites to it
Reply With Quote #4

You can use this include to get random & valid coordinates: http://forums.alliedmods.net/showthread.php?t=132500
And then you just need to create an entity, set its model, etc: http://forums.alliedmods.net/showthr...ghlight=entity
t3hNox 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 11:22.


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