Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AttachEmitterToSocket(Full Path, Socketname);
- function AttachEmitterToSocket(ParticleSystem Effect, name SocketName) //should be used for attaching permanent particle effects ie thrusters, lights and similar
- {
- local ParticleSystemComponent EffectTemplate;
- if(WorldInfo.NetMode != NM_DedicatedServer)
- {
- if (Mesh != None)
- {
- EffectTemplate = WorldInfo.MyEmitterPool.SpawnEmitterCustomLifetime(Effect, false);
- EffectTemplate.SetAbsolute(false, false, false);
- EffectTemplate.bUpdateComponentInTick = true;
- EffectTemplate.SetTickGroup(TG_EffectsUpdateWork);
- Mesh.AttachComponentToSocket(EffectTemplate, SocketName);
- }
- }
- }
Add Comment
Please, Sign In to add comment