"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
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
Torque Owner Edward Smith
Silencersoft
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);