Answered How do you bind functions to buttons?

keatongregg

Member
Messages
19
Reaction score
7
Points
8
When I try to bind functions to buttons they don't seem to do anything in game.
Example:
function Test()
{
if(self actionslottwobuttonpressed()) self iPrintln("Test");
}
Then if I try a loop it just freezes the game.
Example:
function Test()
{
for(;:wink:
{
if(self actionslottwobuttonpressed()) self iPrintln("Test");
}
}

Can anybody help me please?
 

VerTical

CEO
Donator
Messages
0
Reaction score
-86
Points
664
function Test()
{

for(;:wink:
{
if(self actionslottwobuttonpressed()) self iPrintln("Test");
wait .2;
}

}
 
Top