AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Random Spawning (https://forums.alliedmods.net/showthread.php?t=128182)

infek 05-29-2010 16:50

Random Spawning
 
Alright ive been trying to get a "AMMO BOX" to give you a random amount of ammo once a round and that ammo model spawns anywhere around the map

i already have the model for it "models/ammobox.mdl"

Similar to CSDM with like "AMMO Packs" but i want it to be a random amount of ammo w/ random spawn in a map... and also Only one person can get the ammo box (1 box per round) lets just say some one finds the ammo box first and they get it and now everyone has to find the ammo box next round "First come first serve"

Exolent[jNr] 05-31-2010 03:32

Re: Random Spawning
 
There was a thread in the Scripting Help section about something like this.
I linked to this thread: http://forums.alliedmods.net/showthread.php?t=75882

You can use that to make random spawns.

Then you can create 1 ammo box each round start in a random spawn point.

If you don't know how to:
  • create an entity
  • hook when an entity is touched
  • hook round start
  • choose a random spawn from the list

Then you can search because all of that has been demonstrated plenty of times.


All times are GMT -4. The time now is 05:21.

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