Can't pickup item
Posted: 2020-02-06, 17:14
I thought I'd replace the ammo items I've noticed missing, I started off with some shotgun shells but I can't pick them up.
I looked at other ammo, Ammo_DesertEagle is still there and I can pick that up and the weapon, I can pick up a shotgun ok
Its going to be something simple but I'm not seeing it!
edit:
Nevermind sorted it, I didn't realise I needed to add the inventory item to the HumanPlayer.lua
the script for Bazooka seems to be wrong?
Line 179
it draws grenades at the crosshair
in console:
I looked at other ammo, Ammo_DesertEagle is still there and I can pick that up and the weapon, I can pick up a shotgun ok
Its going to be something simple but I'm not seeing it!
edit:
Nevermind sorted it, I didn't realise I needed to add the inventory item to the HumanPlayer.lua
the script for Bazooka seems to be wrong?
Line 179
Code: Select all
local c1 = world:new("ComponentModelT")
c1:set("Name", "Games/DeathMatch/Models/Weapons/Grenade/Grenade_w.cmdl")
in console:
Code: Select all
Player picked up item: Bazooka
Warning: Lua error in call to method Think():
Games/DeathMatch/Scripts/Rocket.lua:22: attempt to call global 'Vector3T' (a nil value)