Correct way to spawn an effect on an NPC bone?

So, i am working on a combine guard as mine and Vrej’s first SNPCs along with the cremator and crab synth and i tried to start off the code for the combine guard’s warp cannon charge.


function: ENT:BeginBeamFire()
local effectdata = EffectData()
effectdata:SetScale( 1 )
EffectData:GetAttachment(muzzle)
util.Effect( "stridcan_charge", effectdata )

I have not yet tested it and at the moment, i am still adding to it and ready to find out wether i am wasting my time… so, do you think this will work? the effect “stridcan_charge” is to be attached to the combine guard’s gun muzzle…