Game Development Community

Get spawnpoint by name (dumb question)

by Very Interactive Person · in Torque Game Engine · 05/19/2004 (6:34 am) · 3 replies

Hey.. probably a really dumb question, but I have the name of a spawnpoint as a string... and now I want to get that spawnpoint in the map. Like %spawnpoint= <-- is what exactly? Everything I try fails.

#1
05/19/2004 (8:48 am)
Have you tried using the name of the spawnpoint?

If it's name FooPoint, you could reference it in script by saying %spawnPoint = FooPoint;
#2
05/19/2004 (12:01 pm)
I know I can do that with simgroups of spawnpoints, not done it with a specific spawnpoint. I assume that will work though.
#3
05/19/2004 (12:44 pm)
Yeah, you need to make the engine look in the simgroup first and then determine all names in it and use one of them, I think.

There's probably an easy way to just place em anywhere and call the same function that checks them but without a simgroup.