Hello, I'm working on my own gamemode. I have a problem though, I can't spawn my custom weapon. In console I get [CODE]Attempted to create unknown entity type weapon_sr_test[/CODE]. Do you have to hook the gamemode code to detect the weapons or something? My weapon is in gamemodes/sr/entities/weapons/weapon_sr_test. I used [CODE] ply:Give("weapon_sr_test")[/CODE] to give it, but in game, I get that error in my console and my hands are empty with no gun :/
Please help!
What error do you have in console?
Also, I'm pretty sure you need SWEPs to have a base.
This is all that's in my console:
VX cheese was killed by trigger_hurt
Warning: killicon not found 'trigger_hurt'
Unknown command: headtrack_reset_home_pos
VX cheese suicided!
VX cheese suicided!
Attempted to create unknown entity type weapon_sr_test!
NULL Ent in GiveNamedItem!
I already have a base, it's Realistic base, i'm going to write my own base, but this is for test purposes.
[editline]16th August 2013[/editline]
Still can't figure it out :/
No the error would be at the top of your console when the server started. If the Lua for the weapon is not in the right folder it will also not be loaded properly as a weapon entity.
Nevermind, fixed it. Turns out I just had to restart the game :P
Sorry, you need to Log In to post a reply to this thread.