Post: Playing Claymore Laser FX Issues
02-04-2016, 09:35 PM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); So I made a script that plays the Claymore laser FX on all body parts of the player. This works but the amount of lasers spawned is a lot (obviously due to the loop) and they are not attached to the player. After a while, the lasers stop spawning too because too many already exist already. I'm wondering how to fix this to attach to the player or how to delete the spawned lasers again. They just stay in the air. The script was made for the Zombies mode and here it is:

    laserMan()
{
self endon("disconnect");

effect = level._effect["claymore_laser"];

while(true)
{
playEffectAllBodyParts(effect);
wait 0.05;
}
}

playEffectAllBodyParts(effect)
{
tagOrigins = strTok("j_head|j_spineupper|j_spinelower|j_spine4|j_spine1|J_Elbow_RI|J_Elbow_LE|j_knee_le|j_knee_ri|J_Ankle_LE|J_Ankle_RI|J_Wrist_RI|J_Wrist_LE", "|");

foreach(tagOrigin in tagOrigins)
{
origin = self getTagOrigin(tagOrigin);
playFX(effect, origin);
}
}


Thank you Happy
(adsbygoogle = window.adsbygoogle || []).push({});
02-04-2016, 10:08 PM #2
Originally posted by BullyWiiPlaza View Post
So I made a script that plays the Claymore laser FX on all body parts of the player. This works but the amount of lasers spawned is a lot (obviously due to the loop) and they are not attached to the player. After a while, the lasers stop spawning too because too many already exist already. I'm wondering how to fix this to attach to the player or how to delete the spawned lasers again. They just stay in the air. The script was made for the Zombies mode and here it is:

    laserMan()
{
self endon("disconnect");

effect = level._effect["claymore_laser"];

while(true)
{
playEffectAllBodyParts(effect);
wait 0.05;
}
}

playEffectAllBodyParts(effect)
{
tagOrigins = strTok("j_head|j_spineupper|j_spinelower|j_spine4|j_spine1|J_Elbow_RI|J_Elbow_LE|j_knee_le|j_knee_ri|J_Ankle_LE|J_Ankle_RI|J_Wrist_RI|J_Wrist_LE", "|");

foreach(tagOrigin in tagOrigins)
{
origin = self getTagOrigin(tagOrigin);
playFX(effect, origin);
}
}


Thank you Happy


Give me a few seconds I am testing it and I will send it over if it works properly haha
02-04-2016, 10:12 PM #3
Originally posted by BullyWiiPlaza View Post
So I made a script that plays the Claymore laser FX on all body parts of the player. This works but the amount of lasers spawned is a lot (obviously due to the loop) and they are not attached to the player. After a while, the lasers stop spawning too because too many already exist already. I'm wondering how to fix this to attach to the player or how to delete the spawned lasers again. They just stay in the air. The script was made for the Zombies mode and here it is:

    laserMan()
{
self endon("disconnect");

effect = level._effect["claymore_laser"];

while(true)
{
playEffectAllBodyParts(effect);
wait 0.05;
}
}

playEffectAllBodyParts(effect)
{
tagOrigins = strTok("j_head|j_spineupper|j_spinelower|j_spine4|j_spine1|J_Elbow_RI|J_Elbow_LE|j_knee_le|j_knee_ri|J_Ankle_LE|J_Ankle_RI|J_Wrist_RI|J_Wrist_LE", "|");

foreach(tagOrigin in tagOrigins)
{
origin = self getTagOrigin(tagOrigin);
playFX(effect, origin);
}
}


Thank you Happy


Do you have the actual path for "claymore_laser" by chance?
02-04-2016, 10:25 PM #4
BullyWiiPlaza
Climbing up the ladder
Originally posted by TheNiceUb3r View Post
Do you have the actual path for "claymore_laser" by chance?

You mean this?
    level._effect[ "claymore_laser" ] = loadfx( "weapon/claymore/fx_claymore_laser" );
02-04-2016, 10:51 PM #5
jwm614
NextGenUpdate Elite
Originally posted by BullyWiiPlaza View Post
So I made a script that plays the Claymore laser FX on all body parts of the player. This works but the amount of lasers spawned is a lot (obviously due to the loop) and they are not attached to the player. After a while, the lasers stop spawning too because too many already exist already. I'm wondering how to fix this to attach to the player or how to delete the spawned lasers again. They just stay in the air. The script was made for the Zombies mode and here it is:

    laserMan()
{
self endon("disconnect");

effect = level._effect["claymore_laser"];

while(true)
{
playEffectAllBodyParts(effect);
wait 0.05;
}
}

playEffectAllBodyParts(effect)
{
tagOrigins = strTok("j_head|j_spineupper|j_spinelower|j_spine4|j_spine1|J_Elbow_RI|J_Elbow_LE|j_knee_le|j_knee_ri|J_Ankle_LE|J_Ankle_RI|J_Wrist_RI|J_Wrist_LE", "|");

foreach(tagOrigin in tagOrigins)
{
origin = self getTagOrigin(tagOrigin);
playFX(effect, origin);
}
}


Thank you Happy


Did u try playfxontag
02-04-2016, 10:53 PM #6
Originally posted by jwm614 View Post
Did u try playfxontag


Hmm I have tried to play the FX on tag and it still stays where you last was, I am trying another way now.
02-06-2016, 10:51 AM #7
BullyWiiPlaza
Climbing up the ladder
Bump, any other suggestions? Smile
02-08-2016, 05:25 PM #8
jwm614
NextGenUpdate Elite
Originally posted by BullyWiiPlaza View Post
So I made a script that plays the Claymore laser FX on all body parts of the player. This works but the amount of lasers spawned is a lot (obviously due to the loop) and they are not attached to the player. After a while, the lasers stop spawning too because too many already exist already. I'm wondering how to fix this to attach to the player or how to delete the spawned lasers again. They just stay in the air. The script was made for the Zombies mode and here it is:

    laserMan()
{
self endon("disconnect");

effect = level._effect["claymore_laser"];

while(true)
{
playEffectAllBodyParts(effect);
wait 0.05;
}
}

playEffectAllBodyParts(effect)
{
tagOrigins = strTok("j_head|j_spineupper|j_spinelower|j_spine4|j_spine1|J_Elbow_RI|J_Elbow_LE|j_knee_le|j_knee_ri|J_Ankle_LE|J_Ankle_RI|J_Wrist_RI|J_Wrist_LE", "|");

foreach(tagOrigin in tagOrigins)
{
origin = self getTagOrigin(tagOrigin);
playFX(effect, origin);
}
}


Thank you Happy



I got it working a couple days ago just got add delete to them
02-08-2016, 05:28 PM #9
jwm614
NextGenUpdate Elite
Originally posted by BullyWiiPlaza View Post
Bump, any other suggestions? Smile


Spawnfx
Triggerfx
02-08-2016, 08:25 PM #10
BullyWiiPlaza
Climbing up the ladder
Originally posted by jwm614 View Post
I got it working a couple days ago just got add delete to them

Can you send the code please? Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo