Parrot4543 10 Posted October 23, 2013 Is there a way to clear functions out the the servers resident memory without disrupting a mission? I did come across a BIS function that "halts a function" and returns an error message of your choice I am wondering if it "actually flushes the memory"? Share this post Link to post Share on other sites
na_palm 19 Posted October 23, 2013 hi Parrot4543, I don't know if i got your question right. So you ask of a way to erase/delete a user made function out of the memory on mission runtime? If thats the question, I assume further that you used "<functionname> = compile <function/filename>" to load/compile it first. The answer then is simply use "<functionname> = Null" to erase/delete it, but this can easily went to undesired behavior, to say the least. greetings Na_Palm Share this post Link to post Share on other sites
Parrot4543 10 Posted October 23, 2013 Yes that is exactly what I wish to do and I want to "safely" erase the function without it breaking anything... Because I know that functions still exist in the memory... no matter what they are loaded and stay there... Clearing them would reduce server load correct? Share this post Link to post Share on other sites
cuel 25 Posted October 24, 2013 Not null, nil myFunc = compile preProcessFileLineNumbers "script.sqf"; [foo] call myFunc; myFunc = nil; I do not think you would notice a great reduce of server load however, unless your script files are several hundreds LoC's Share this post Link to post Share on other sites
Guest Posted October 24, 2013 Not sure what you think is a descriptive topic title but "Anyway?" sure is not. §21) Use descriptive thread titlesIf you start a new thread, please make sure your thread title explains what you want without forcing people to read through your post first. Thread titles such as "How in the world do I...", "Need help!" or "Will we ever see..." are anything but descriptive. We do not allow these kind of titles and threads with such titles are subject to be closed. Share this post Link to post Share on other sites