Hello, this is apm for probably the billionth time, alot of my code is running smoothly at the moment, but I have a small question…
Is it possible to index a value from a different function or to “carry” a value from one seperate function to another? for instance:
function ENT:Initialize() blablabla... local ragdoll = ents.Create("prop_ragdoll") ragdoll:Spawn() end
and then carry “ragdoll” to this function:
function ENT:Think() blablabla... ragdoll:Remove() end
I’m attempting something similar to this with CSoundPatch and i need the sound to begin in one function and stop when the npc dies or is deleted, but that aside, is it possible to do so…
If it’s so obvious that it’s tearing my face off while my eyes are open… then criticize, it helps.