If I use self meleeButtonPressed() I'd have to do something like this:
function example()
{
for(;;)
{
if(self meleeButtonPressed())
self thread doDamageToPlayer(); //to the player I hit
//wait until I can knife someone again
}
}
//or
function example()...
How do I get the key of an array when the array is multidimensional and I only have the value?
function createTestArray()
{
//our arrays
childArray1 = array(
"val 1",
"val 2"
);
childArray2 = array(
"val 3",
"val 4"
);
self.parentArray =...
Does anyone have an idea on how to check if I'm spectating a certian player? I'm pretty sure there exists a function called IsSpectating. And let's say I want to check if I'm spectating the player with the gamertag "CabCon". How would I do that?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.