• Error with my weapon
    2 replies, posted
I'm trying to convert it from 12 to 13 and i get this message: [code]shared.lua:193: attempt to call global 'ValidEntity' (a nil value) 1. GetHeadshotMultiplier - gamemodes/terrortown/entities/weapons/weapon_ttt_win1300/shared.lua:193 2. unknown - gamemodes/terrortown/gamemode/player.lua:743 3. FireBullets - [C]:-1 4. ShootBullet - gamemodes/terrortown/entities/weapons/weapon_tttbase/shared.lua:323 5. unknown - gamemodes/terrortown/entities/weapons/weapon_tttbase/shared.lua:247 [/code] this is line 193: [code]if not ValidEntity(att) then return 3 end[/code] what did i do wrong?
ValidEntity is depreciated. Use: [lua]IsValid( anything )[/lua] (Mark as solved huehuehue)
Use this as a guide for GM12 to GM13. [URL="https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1"]https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1[/URL]
Sorry, you need to Log In to post a reply to this thread.