You, sir, are brilliant!
I've been waiting so long for this to happen, and bam, out of nowhere, you come and upload this!
Please, have my babies! They carry cookies!
+rep'ed!
No matter how many Z's you put after Plz, you still spell as well as a piece of cheese.
http://somone77.net
You, sir, are brilliant!
I've been waiting so long for this to happen, and bam, out of nowhere, you come and upload this!
Please, have my babies! They carry cookies!
+rep'ed!
Can a wire dev review this and check if its worthy of being added to the official SVN?
HOLY SHIZNIT, IT WORKS!!!
<3Code:if(first()) { runOnTick(1) findIncludePlayerProps(owner()) } ColorEnts = function("Entities:array") { EC = Entities:count() for(I=1,EC) { Entities[I,entity]:setColor(hsv2rgb(360/EC*I,1,1)) } } if(findCanQuery()) { findByClass("*") Ents = array() Ents = findToArray() ColorEnts:call(Ents) }
EDIT:also, dont forget to put functions in if(first()) I think it makes it more efficient, though im not sure.. Better safe than soz though
EDIT2:nvm, if first was fail :3
Last edited by jacoby6000; 05-16-2010 at 02:17 PM.
--Orson Scott CardIn [his] experience that was a sentence never to be uttered except to prove its own inaccuracyI'm not stupid!
--Orson Scott CardIn [his] experience that was a sentence never to be uttered except to prove its own inaccuracyI'm not stupid!
It seems like a variable for the function doesn't seem like the best way to accomplish this. Perhaps just do something along the lines of
and then call("string name")Code:function("string name", parameters) {...}
I could do that, or I could make it work like functions from other languages, which is what I did.
Er...
C++:
returntype name(parameters) {...}
Lua:
function name(parameters) {...}
Neither of those start with the name of the function, and neither of them involve defining a variable (except C++ defining the type)
Bookmarks