mirror of
https://github.com/SpaxscE/simfphys_armed.git
synced 2025-03-04 03:13:26 -05:00
fixed lua error
This commit is contained in:
parent
ca36df6686
commit
ea20434089
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user