Game Development Community

Popactionmap

by Matt Sanders · in Torque Game Engine · 01/07/2005 (9:06 am) · 4 replies

Is there some way to pop all action maps that have been pushed on the stack. I am desperately trying to get some vehicles working correctly in my game and I would not like to have to find a better way of trying to keep track of all the actionmaps I have. ex: driver, passenger, movmap, flying, etc..

#1
01/08/2005 (11:06 pm)
Yes, you can pop actionmaps. Simply call ActionMap.pop() where ActionMap is the name of your action map. :)

To pop them all, either track how many you push in script, or figure out where the number of action maps is stored in the code.
#2
01/09/2005 (3:27 pm)
I know about ActionMap.pop() I just wanted to see if there was some way to check what actionmaps are pushed so I know in code which ones to pop. Thanks for the reply.
#3
01/11/2005 (8:46 am)
There's a SimSet which contains 'em, try using tree() to find it.
#4
07/05/2005 (6:11 pm)
Matt you might want to look at this resource...

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3925

Hope this helps.

.......I know... 6 months late ;)