hi i create a fps game but i am problem with the arms inventory
i read this tuto http://theboomshelter.com/itute.html
but this dont works with blender 2.42 ,this works fine only in blender 2.25
i modifics the simpledemo file of thsi tuts
but dont works scripts names and othes scripts
download this: http://www.savefile.com/files/105688
somebody can help me to be able to finish adapting it
so that it works correctly in blender 2.42
the scripts modifcs for scabootssca :
###########info###################
cont= GameLogic.getCurrentController()
own = cont.getOwner()
sen = cont.getSensor(‘col’)
sen2 = cont.getSensor(‘enter’)
obj = sen.getHitObject()
if sen.isPositive():
if obj:
GameLogic.name = obj.note
if sen2.isPositive() and sen.isPositive:
if obj:
GameLogic.equip = obj.gun
##########equip###########
g = GameLogic
own = g.getCurrentController().getOwner()
if hasattr(g,“initilizedInventory”):
if own.gun == g.equip:
own.vis = 1
own.setVisible(1)
else:
own.vis = 2
own.setVisible(0)
########starup##############
import GameLogic as g
g.inventory = []
g.name = “Empty”
g.equip = “”
g.initilizedInventory = 1
Cool
Thank you for this demo file. It’s very interesting.
Just a question : when I select a gun (a gun which is in the inventory), the gun doesn’t appear on the screen. How can I make that ? For exemple, if the game is in third person, when I selected the Gun1, the Gun 1 appears in the hand of my character.