What's new

Solved Cod 4 R2R Help

X

XeX Launchpad

Official Hoster
Messages
78
Reaction score
30
Hi guys I need help with button codes I want a button to be pressed to start the infection for yourself any ideas??
 
I tried if( self MeleeButtonPressed()) but I have a thread I want to connect it to any it still just infects on spawn
 
I

ImOx

(^._.^)ノ
Retired
Messages
9,968
Reaction score
2,962
If you're using an if statement, you need to be constantly running the check (use an infinite loop), otherwise the check for WhateverButtonPressed() is just ran once.
Code:
for(;;)
{
if(self MeleeButtonPressed())
//stuff here

wait .05; //always add at least a tiny bit of wait to your infinite loops
}
 
X

XeX Launchpad

Official Hoster
Messages
78
Reaction score
30
If im trying to do it with a thread would that work??
 
A

ApolloMods v5

Enthusiast
Messages
217
Reaction score
34
No idea what you're trying to say.
I think he meant he wants to link it to a thread of his own on the forums, but he can't find the correct code for whatever bind he wants the infection to be started with....

I could be wrong.
 
X

XeX Launchpad

Official Hoster
Messages
78
Reaction score
30
Like self thread something();
 
The infection is on the thread I want to make it so I press a certain button and it starts
 
Top Bottom