created bots [message #322921] |
Wed, 19 March 2008 05:58 |
|
SODPaddy
Messages: 233 Registered: August 2005 Location: Germany
Karma: 0
|
Recruit |
|
|
Hello,
i created GDI_MiniGunner_3Boss.
When i was on Nod they dont shot me.. what must i do?
Website: www.Area54.eu
Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
|
|
|
|
|
|
Re: created bots [message #322964 is a reply to message #322921] |
Wed, 19 March 2008 11:14 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
I think Roshambo is right, have you checked out your innate behaviour settings?
|
|
|
Re: created bots [message #322970 is a reply to message #322921] |
Wed, 19 March 2008 11:34 |
|
SODPaddy
Messages: 233 Registered: August 2005 Location: Germany
Karma: 0
|
Recruit |
|
|
i created this bot via c++
like:
if (Type == 0 || Type == 1) {
if (wcsicmp(Msg2, L"!bothavoc") == 0) {
if (Commands->Get_Money(Get_GameObj(ID)) >= 2000) {
GameObject *obj = Get_GameObj(ID);
Vector3 position = Commands->Get_Position(obj);
position.Z += 5;
position.X -= 5;
Commands->Create_Object("CnC_GDI_MiniGunner_3Boss_Skirmish",position);
Commands->Give_Money(Get_GameObj(ID),(float)-2000,false);
char Message[100];
sprintf(Message,"ppage %d [PB] %s your item created.", ID, Get_Player_Name_By_ID(ID));
Console_Input(Message);
}
else {
Commands->Give_Money(Get_GameObj(ID),0,false);
char Message[100];
sprintf(Message,"ppage %d [PB] Sorry, this item cost $2000", ID, Get_Player_Name_By_ID(ID));
Console_Input(Message);
}
}
}
Look -> http://ehserv.netgamezone.de/forum/viewthread.php?forum_id=9&thread_id=1
Website: www.Area54.eu
Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
[Updated on: Wed, 19 March 2008 11:36] Report message to a moderator
|
|
|
Re: created bots [message #322971 is a reply to message #322921] |
Wed, 19 March 2008 11:52 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
General (3 Stars) |
|
|
If the preset you're creating has a innate behaviour that stops it from attacking, then it doesn't really matter about your code.
Look at the preset in level edit.
|
|
|
|
|
|
|
|
|
|
|