AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Spawn random items on a map (https://forums.alliedmods.net/showthread.php?t=65163)

flyeni6 01-02-2008 16:00

Spawn random items on a map
 
Ok i have some questions:

1. How can i spawn an item on a random place in a map?
for example, i want to pick up an m4a1 on a random place in De_dust2, then after i pick it up, 30 seconds later it will spawn somewhere else


2.how can i spawn i knife just like the same way as #1 and be able to pick it up?


thanks

fxfighter 01-02-2008 16:16

Re: Spawn random items on a map
 
Dont know it might be posiable to create an armour entity and set the values on mapload or ofc when you want to make it...
Culd detect weapon pickup and set a task for recreate Gun?

Arkshine 01-02-2008 16:36

Re: Spawn random items on a map
 
Take a look in csdm_items.sma.

kp_uparrow 01-02-2008 16:49

Re: Spawn random items on a map
 
i would create spawn points and randomly pick one to spawn it

flyeni6 01-03-2008 17:24

Re: Spawn random items on a map
 
ok ill look in csdm_items, so doest anyone have any i dea to my second question?

kp_uparrow 01-03-2008 22:17

Re: Spawn random items on a map
 
spawn it and register touch to give it to player?


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

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