Game Development Community

How to check inventory

by Temasek Polytechnic Tp8 · in Torque Game Engine · 08/16/2006 (1:37 am) · 4 replies

Example like a create a night vision datablock and user can only use night vision after it got the google

anyone know?

#1
08/16/2006 (1:56 am)
Here

and here
#2
08/16/2006 (2:02 am)
I got night vision already, but i want the night vision to be pick up items just like weapon...
#3
08/16/2006 (5:42 pm)
Anyone know?
#4
08/16/2006 (7:00 pm)
So basically you want to have an item that's a google... and you'll pick it up. then you can press "e" or whatever and actually be able to use them.

Have you looked at the function .getInventory() ??

I'm not certain. but it'll probably list all the items in the players inventory.
It may be a simset or something you can trace thru and check each record and see if it's a night vision goggle.