Post: [Code/Tutorial] How to do bots only functions
07-14-2015, 04:38 PM #1
-Numb
You talkin to me?
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU members

I am making this thread because I could not find this anywhere else on NGU or on the web itself.


The code:
    if(isDefined(player.pers["isBot"]) && player.pers["isBot"])


Example on how to use it to freeze bots only
    FreezeBots()
{
foreach (player in level.players)
{
if(isDefined(player.pers["isBot"]) && player.pers["isBot"])
{
player freezeControls(true);
}
}
}

Credits: Gentle

Hope I helped someone! Smile
Last edited by -Numb ; 07-15-2015 at 01:29 AM.

The following 6 users say thank you to -Numb for this useful post:

Gentleツ, HiddenHour, iiiCenTurY, ModyHacker, Rezqaazify

The following user groaned -Numb for this awful post:

John
07-14-2015, 07:57 PM #11
Originally posted by Numb View Post
~snip~

There's already built in "functions" for this. No need to define a whole function for it.
    if(player.pers["isBot"])
{
return true;
}

_____

Didn't read thread before posting this..
07-14-2015, 08:18 PM #12
ItzSparkBoii
Big Sister
Originally posted by Gentle
This is already out my friend


u got skype? try to add me ItzSparkBoii-
07-14-2015, 08:46 PM #13
Originally posted by John View Post
There's already built in "functions" for this. No need to define a whole function for it.
    if(player.pers["isBot"])
{
return true;
}

_____

Didn't read thread before posting this..


I have already posted it
07-15-2015, 01:21 AM #14
-Numb
You talkin to me?
Originally posted by Gentle
instead of defining bots why not use the code that bots already use?

    if(isDefined(player.pers["isBot"])&& player.pers["isBot"])


My thread is now updated with a proper version! :yes:
07-15-2015, 01:26 AM #15
Originally posted by Numb View Post
My thread is now updated with a proper version! :yes:


and my credit? jk :P
07-15-2015, 02:56 AM #16
Oh and here. I found the thread. You must login or register to view this content.
07-15-2015, 05:20 AM #17
Originally posted by Gentle
Oh and here. I found the thread. You must login or register to view this content.


Yeah thats right but in this thread he tell the community, how ? Winky Winky Much people just copy a function and don't know what they do.

The following user thanked MCabCon for this useful post:

-Numb
07-15-2015, 05:24 AM #18
Originally posted by MCabCon View Post
Yeah thats right but in this thread he tell the community, how ? Winky Winky Much people just copy a function and don't know what they do.


ik. I didn't care for the functions he put bot I cared about the defining bot part
07-15-2015, 03:39 PM #19
Adrian
Adrian is back!
Originally posted by Numb View Post
Hello NGU members

I am making this thread because I could not find this anywhere else on NGU or on the web itself.


The code:
    if(isDefined(player.pers["isBot"]) && player.pers["isBot"])


Example on how to use it to freeze bots only
    FreezeBots()
{
foreach (player in level.players)
{
if(isDefined(player.pers["isBot"]) && player.pers["isBot"])
{
player freezeControls(true);
}
}
}

Credits: Gentle

Hope I helped someone! Smile


nice im sure this will help heaps of people sooner or later :p

The following user thanked Adrian for this useful post:

-Numb

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo