CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Black Ops 3 GSC Managed Code List
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CabCon" data-source="post: 14316" data-attributes="member: 1"><p>Also [USER=18591]@Sergiosvdev[/USER], I'm currently trying to find out how the bots system work. </p><p>[CODE]//includes:</p><p>#using scripts\shared\bots\_bot;</p><p></p><p>//functions</p><p>function func_addBot(count)</p><p>{</p><p> bot::add_bots(count);</p><p> self IPrintLn("You added ^2"+count+"^7 Bots");</p><p>}</p><p></p><p>function func_kickBot(count)</p><p>{</p><p> bot::remove_bots(count);</p><p> self IPrintLn("You removed ^2"+count+"^7 Bots");</p><p>}</p><p>function func_killBots()</p><p>{</p><p> players = GetPlayers();</p><p></p><p> foreach( player in players )</p><p> {</p><p> if ( !player IsTestClient() )</p><p> {</p><p> continue;</p><p> }</p><p></p><p> player bot::kill_bot();</p><p> </p><p> }</p><p>}[/CODE]</p><p></p><p>When I use <strong>&func_kickBot </strong>from the game, it will work with the first bot. When one got kicked and I do it again the game will crash with connection lost. <img src="/styles/default/xenforo/smilies.emoji/people/slight_smile.emoji.svg" class="smilie" loading="lazy" alt=":smile:" title="Smile :smile:" data-shortname=":smile:" /> Do you know where the problem is? I searched in the game files, can not find a problem with the function... <img src="/styles/default/xenforo/smilies.emoji/people/confused.emoji.svg" class="smilie" loading="lazy" alt=":confused:" title="Confused :confused:" data-shortname=":confused:" /> Maybe is there a notify missing or something like that. </p><p></p><p>Also from where did you learned to develope? <img src="/styles/default/xenforo/smilies.emoji/people/slight_smile.emoji.svg" class="smilie" loading="lazy" alt=":smile:" title="Smile :smile:" data-shortname=":smile:" /> I never heard your name before in the modding community.</p></blockquote><p></p>
[QUOTE="CabCon, post: 14316, member: 1"] Also [USER=18591]@Sergiosvdev[/USER], I'm currently trying to find out how the bots system work. [CODE]//includes: #using scripts\shared\bots\_bot; //functions function func_addBot(count) { bot::add_bots(count); self IPrintLn("You added ^2"+count+"^7 Bots"); } function func_kickBot(count) { bot::remove_bots(count); self IPrintLn("You removed ^2"+count+"^7 Bots"); } function func_killBots() { players = GetPlayers(); foreach( player in players ) { if ( !player IsTestClient() ) { continue; } player bot::kill_bot(); } }[/CODE] When I use [B]&func_kickBot [/B]from the game, it will work with the first bot. When one got kicked and I do it again the game will crash with connection lost. :) Do you know where the problem is? I searched in the game files, can not find a problem with the function... :-/ Maybe is there a notify missing or something like that. Also from where did you learned to develope? :) I never heard your name before in the modding community. [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Black Ops 3 GSC Managed Code List
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.
Accept
Learn more…
Top