AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Spawn a model and add sprites to it (https://forums.alliedmods.net/showthread.php?t=144463)

crazy.cipry 12-04-2010 10:05

Spawn a model and add sprites to it
 
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?

SaM.ThE.MaN 12-04-2010 12:03

Re: Spawn a model and add sprites to it
 
yeah ... spawn an entity , with ur tree model ... or create a custom tree model that flashes , and then spawn an entity and animate it

crazy.cipry 12-04-2010 12:06

Re: Spawn a model and add sprites to it
 
Quote:

Originally Posted by SaM.ThE.MaN (Post 1362922)
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?

t3hNox 12-04-2010 12:51

Re: Spawn a model and add sprites to it
 
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


All times are GMT -4. The time now is 11:22.

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