PDA

View Full Version : Random Super Item Spawnpoint?


Swanky
05-23-2005, 05:16 PM
Is there a random super item spawnpoint?
I want to make a spot in a map that spawns superitems about all 60 seconds, but I want to spawn a random superitem, that is grabbed by the bots as well.
Is there such a thing, or can someone script such a thing for me until tomorrow? (me is nearly finished with CTF-Echoes, the map is nearly beta)
Thanks in advance

XepptizZ
05-23-2005, 05:20 PM
I think you could trigger thingfactories to a stochastic trigger.

I also think bots automaticly go to such items.

Professor
05-23-2005, 06:15 PM
Xepp's right! but to add to it, the way Epic has the script written, it is not possible to make random items spawn. It is possible to spawn a certain item at a random spawnpoint though. Remember NavigationPoint -> SpawnPoint is neccessary for a ThingFactory to work properly. You could try using like 2 different ThingFactories set to spawn a different prototype(the actor you want to spawn) each and use 2 SpawnPoints for each ThingFactory for a total of 4 SpawnPoints. Now put 1 SpawnPoint from each ThingFactory in the void and the other one where you want its super item to be spawned. What this will do is when the ThingFactory picks a random SpawnPoint that is in the void and tries to spawn its super item there the engine will not allow this to happen so essentially nothing happens and nothing gets spawned. However, if the other ThingFactory that spawns a different super item just happens to pick one of the SpawnPoints in your map instead of the one in the void then its super item will be spawned there.

You can have a maximum of 16 SpawnPoints per ThingFactory. Also the items spawned should be set to falling or they will be hovering in mid air where the spawnpoint is. Also keep in mind that a SpawnPoint acts like a pathnode so if you add any SpawnPoints to your map you *MUST* rebuild paths!!! or your map could crash when you try to play it. Something about a bot roaming error if a bot tries to use the newly placed SpawnPoint that has no paths associated with it. ;)

Hope this helps Swanky. :) At least maybe give you some ideas to go on. It is perfectly okay to put some SpawnPoints in the void if the paths are rebuilt!. Nothing can be spawned in the void.

Cheerz