Game Development Community

"Buy" menus like counterstrike

by Danner Jones · in Torque Game Engine · 01/24/2004 (10:05 pm) · 1 replies

I could have sworn I'd seen a resource posted that showed how to implement "buy" menus, similar to counterstrike. I've just spent two hours browsing every resource under example code, mods, patches, scripting and tutorials and no luck. My search terms of "buy" and "counterstrike" in the resources and forums areas didn't turn up anything either. I searched on tork.zenkel.com (at new address) and hallofworlds.com as well.

Am I just missing it? Maybe I just *thought* I saw this resource? :)

I'd imagine it would work off a trigger - enter an area designated as your "buy area" and allow the player to popup a gui to purchase items. I don't imagine it would be too hard to implement, but if someone else has already worked out the kinks...

-nerseus

#1
01/24/2004 (10:30 pm)
Mmm... I don't remember a resource but I have done a thing like this, and I just made a menu basicly and it spawned the player with the type and with the picked wepaon, the TeamID resource may help...

But if you want it like a shop you could do it with a trigger which brings up this menu and then the weapons and items get added to the player like so:

%player.incInventory(weaponname, 1);
%player.incInventory(weaponname, weaponnameAmmo.maxInventory);
%player.use(weaponname);