Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: javipotter on August 13, 2014, 09:32:14 pm
Title: staff buildable fx prob
Post by: javipotter on August 13, 2014, 09:32:14 pm
hi, i write this because im making buildables of staff, each piece has an fx but theproblem is that when i take the piece the fx doesnt dissapear, here is the script i hope u know how to solve this little problem
Title: Re: staff buildable fx prob
Post by: steviewonder87 on August 13, 2014, 09:51:31 pm
I'm not a scripter so I haven't looked at the script, but is the fx looping? That could be the problem.
Title: Re: staff buildable fx prob
Post by: n123q45 on August 13, 2014, 10:08:16 pm
also the best way to remove the fx is delete the item its spawned on :) learned that the hard way
Title: Re: staff buildable fx prob
Post by: jjbradman on August 13, 2014, 11:37:43 pm
you're using "playfx" which spawns the fx at given origin but cant be deleted, so the fx must not be a naturally looped fx because. well, it will loop forever and you cant stop that. thats why people use "playfxontag" which can be spawned at any tag of a model. normally "tag_origin". and theres a model called "tag_origin" with the same tag name which is invisible so you can play fx on that also. and to stop the fx you must delete the model(ent) it is being played on.
Title: Re: staff buildable fx prob
Post by: javipotter on August 14, 2014, 05:59:00 pm
But can anyone add the scripting lines cause i dont know how to write that
Title: Re: staff buildable fx prob
Post by: n123q45 on August 14, 2014, 06:24:32 pm
Title: Re: staff buildable fx prob
Post by: javipotter on August 14, 2014, 07:02:59 pm
Where do i have toplaceit and do I have to modify smthing?
Title: Re: staff buildable fx prob
Post by: n123q45 on August 14, 2014, 10:55:07 pm
modify the variables based on your script. and it goes exactly where the old fx would