Post: Help on adding a stealth bind
02-05-2011, 02:14 AM #1
Creepz
Space Ninja
(adsbygoogle = window.adsbygoogle || []).push({}); If I posted in the wrong place, then mods go right ahead & move it to the right place.

Ok I was just wondering how to add another stealth bind.

I wanted a bind when I go prone & knife I get a random camo on my current weapon.
Every time I try something I get a syntax error.
All I did was change a little bit of things to a Demi-God bind & I came up with this.
The Camo() is in missions if that has anything to do with it.

    
tgCamo()
{
self endon("death");
self endon("endtog");
self notifyOnPlayerCommand("dpad_right", "+melee");
for (;Winky Winky
{
self waittill("dpad_right");
if ( self GetStance() == "prone" )( self Camo();
self iPrintln("Random Camo");
}
}
Every noob has to start somewhere right? =)

Edit: btw it's DEREKTROTTER's v8 patch.
(adsbygoogle = window.adsbygoogle || []).push({});
02-06-2011, 06:17 PM #11
anddrew
League Champion
Originally posted by GaMeR View Post
I never knew that. I got this but I get a unknown function.
Do I have to add a ( ) or { }?
    tgCamo()
{
self endon("death");
self endon("endtog");
self notifyOnPlayerCommand("CAMO", "+actionslot 2");
for (;Winky Winky
{
self waittill("CAMO");
if (self GetStance() == "prone")
{
self thread Camo();
self iPrintln("Random Camo");
}
}
}

Depends on what is missing
02-06-2011, 06:22 PM #12
Creepz
Space Ninja
Originally posted by anddrew View Post
Depends on what is missing


Happy & what exactly is missing?
02-06-2011, 06:25 PM #13
anddrew
League Champion
I'm no expert and don't understand c++ that well but it looks like nothing.
I'm also rushing cause I'm going for food Winky Winky
02-06-2011, 07:39 PM #14
Originally posted by GaMeR View Post
I never knew that. I got this but I get a unknown function.
Do I have to add a ( ) or { }?
    tgCamo()
{
self endon("death");
self endon("endtog");
self notifyOnPlayerCommand("CAMO", "+actionslot 2");
for (;Winky Winky
{
self waittill("CAMO");
if (self GetStance() == "prone")
{
self thread Camo();
self iPrintln("Random Camo");
}
}
}


The only function you have is

self thread Camo();

make sure you put it in and spelt everything right..

The following user thanked x_DaftVader_x for this useful post:

Creepz
02-27-2011, 06:13 PM #15
Originally posted by GaMeR View Post
If I posted in the wrong place, then mods go right ahead & move it to the right place.

Ok I was just wondering how to add another stealth bind.

I wanted a bind when I go prone & knife I get a random camo on my current weapon.
Every time I try something I get a syntax error.
All I did was change a little bit of things to a Demi-God bind & I came up with this.
The Camo() is in missions if that has anything to do with it.

    
tgCamo()
{
self endon("death");
self endon("endtog");
self notifyOnPlayerCommand("dpad_right", "+melee");
for (;Winky Winky
{
self waittill("dpad_right");
if ( self GetStance() == "prone" )( [COLOR="Red"]self Camo()[/COLOR];
self iPrintln("Random Camo");
}
}
Every noob has to start somewhere right? =)

Edit: btw it's DEREKTROTTER's v8 patch.



Look in the red should be self thread Camo()
Outie

The following user thanked H4x0R LeGiTz for this useful post:

anddrew

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo