.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Making bots drop weapons (http://forums.bots-united.com/showthread.php?t=1551)

two_masks 29-04-2004 23:40

Making bots drop weapons
 
Hey everyone,

Is there a constant defined anywhere for the button that makes a character drop their weapon (in the same way that IN_ATTACK causes the trigger to be pulled)?

Thanks,

JB

sPlOrYgOn 29-04-2004 23:46

Re: Making bots drop weapons
 
or you can force a client to run a command.. such as "drop"
it should work for bots too right?

two_masks 30-04-2004 00:06

Re: Making bots drop weapons
 
Can you explain what you mean? Maybe a code snippet?

Thanks a lot,

JB

Pierre-Marie Baty 30-04-2004 00:27

Re: Making bots drop weapons
 
Yes, it's a client command.

Use FakeClientCommand (pEdict, "drop\n");

or FakeClientCommand (pEdict, "drop", NULL, NULL); if you're using botman's FakeClientCommand()


All times are GMT +2. The time now is 07:57.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.