pick up items and use them from inventory.
Posted: Sat May 19, 2007 2:22 pm
Hi,
will someone help with this please.
I have placed a medikit in my level .... and set up the attribute to pick it up
this instantly gives the player more health.
but how can i pick up the medikit or medikits to use later in the game?
I have done the following,
1. put this in the inventory .ini file
[medikit1]
catagory = use
image = medikit1.bmp
imagealpha = a_medikit1.bmp
text = Medical supplies
usedecrease = true
2. put this in the player .ini file
[medikit1]
initial = 1
low = 0
high = 10
3. placed both bitmap and alpha bitmap in the inventory bitmap folder...
The above puts the medikit image in the inventory but how do i get the players health to increase when i use it from the inventory?
I have looked at the weapons/inventory tutorial in the manual ..but am still confused.
Dodger.
will someone help with this please.
I have placed a medikit in my level .... and set up the attribute to pick it up
this instantly gives the player more health.
but how can i pick up the medikit or medikits to use later in the game?
I have done the following,
1. put this in the inventory .ini file
[medikit1]
catagory = use
image = medikit1.bmp
imagealpha = a_medikit1.bmp
text = Medical supplies
usedecrease = true
2. put this in the player .ini file
[medikit1]
initial = 1
low = 0
high = 10
3. placed both bitmap and alpha bitmap in the inventory bitmap folder...
The above puts the medikit image in the inventory but how do i get the players health to increase when i use it from the inventory?
I have looked at the weapons/inventory tutorial in the manual ..but am still confused.
Dodger.