fixed lua error

This commit is contained in:
Blu 2019-11-02 10:37:54 +01:00
parent ca36df6686
commit ea20434089
3 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,8 @@ local Materials = {
function EFFECT:Init( data )
local vehicle = data:GetEntity()
if not IsValid( vehicle ) then return end
local ID = vehicle:LookupAttachment( "cannon_muzzle" )
if ID == 0 then return end

View File

@ -21,6 +21,8 @@ local Materials = {
function EFFECT:Init( data )
local vehicle = data:GetEntity()
if not IsValid( vehicle ) then return end
local ID = vehicle:LookupAttachment( "turret_cannon" )
if ID == 0 then return end

View File

@ -20,6 +20,8 @@ local Materials = {
function EFFECT:Init( data )
local vehicle = data:GetEntity()
if not IsValid( vehicle ) then return end
local ID = vehicle:LookupAttachment( "muzzle" )
if ID == 0 then return end