Finding out the Limb number of the bone in the hand and then attaching a particle to that Limb number In script.
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
function sparks_emitter_hypnotik_init(e)
local imageFile = ParticlesLoadImage( "gamecore\\decals\\sparks\\decal.dds" )
local emitter1 = ParticlesGetFreeEmitter()
ParticlesAddEmitterEx( emitter1, 1/4, 1,
-0, 0, -0, 0, 0, 0,
5, 10, 5, 10,
-0.1, -0.1, -0.1, 0.1, 0.1, 0.1,
-0.1, 0.1, 2000, 2000,
40, 90, 0, 0,
20, 225, 88, imageFile, 16 )
end
function sparks_emitter_hypnotik_main(e)
end
But you will need to script a way to have the particle not be running while the AI is waiting to be spawned. Then Kill it when the entity is destroyed.
My scripting skills are Lame, and I have not tried to do it. The stuff in the _Init section need to be made into a function of its own according to AmenMoses.
RIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.
New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx660, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774