AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove bomb from a bot (https://forums.alliedmods.net/showthread.php?t=24403)

Ramono 02-21-2006 13:07

Remove bomb from a bot
 
How to let a bot drop the bomb.

Thanks,
Ramon

Kraugh 02-21-2006 16:58

try this:
Code:
engclient_cmd(bot,"drop","weapon_c4");

Brad 02-21-2006 21:14

Rumor has it that this is the better way:
Code:
client_cmd(bot,"drop","weapon_c4");

GHW_Chronic 02-21-2006 21:16

I don't believe client_cmds work on bots, if they do, not all bots. engclient_cmd might work though. Not TOO sure.

However, could be wrong, this is my knowledge of bots and executing commands on their "consoles" :)

Brad 02-21-2006 21:44

You're saying "Rumor" is wrong?!? :shock:

Kraugh 02-21-2006 21:56

from what i can tell this is how it works:

client_cmd: tells the client to run a command, which then goes to the server
engclient_cmd: tells the server directly that the client has run a command

since bots don't have clients, you cannot route commands through them (client_cmd), thus you have to just tell the server that they did it anyway (engclient_cmd).

Ramono 02-22-2006 08:39

Quote:

Originally Posted by Kraugh
try this:
Code:
engclient_cmd(bot,"drop","weapon_c4");

Nope, this doesnt work.

Jordan 02-22-2006 09:19

This is kind of complicated by you could slay the bot and then revive it.

Ramono 02-22-2006 10:08

Tought of that b4 you :P
http://forums.alliedmods.net/showthread.php?t=24423
Ill use this untill i find another way.

Jordan 02-22-2006 11:17

Actually, now that I think of this, what Kraugh said should definetly work, because I used that in my own plugin and it works for whoever.


All times are GMT -4. The time now is 20:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.