Page 2 of 2

Posted: 06 Jun 2007, 23:07
by rattle
Guessmyname wrote:Uhh...

there's a zombie melee unit, works well but have to set them to roam or they don't go after people

That's the main problem. Is there a way to make units automatically set to roam?
Yes there is!
I'd either let an endless loop run in the background which sets it roam every second or so or set it to roam in Create()/StartMove()/StopMove() without the need of an endless loop.

"set STANDINGFIREORDER to 2;" should do the trick. You'll need an SVN build for this to work.

Posted: 07 Jun 2007, 02:14
by Muzic
SinbadEV wrote:Look, I even got started

Image
Cute oddly enough o_O

Posted: 07 Jun 2007, 04:53
by Snipawolf
Heh heh heh

Posted: 07 Jun 2007, 07:17
by Argh
Hey, um, I want to use this STANDINGFIREORDER stuff. For Create() simplicity, this would rule.

I take it 0 is Hold Position, 1 is Engage, 2 is Roam?

Sorry to derail the thread. Nice... pumpkin... thing. I'd love to do a pure fantasy game, btw, but I'm still in the middle of my current project, so I can't help right now, but might be available later.

Posted: 07 Jun 2007, 17:09
by rattle
I take it 0 is Hold Position, 1 is Engage, 2 is Roam?
Think so, yes.
Just noticed that it's STANDINGMOVEORDERS, my bad.

Code: Select all

int fireState;							//0=hold fire,1=return,2=fire at will
int moveState;							//0=hold pos,1=maneuvre,2=roam
Also, the UI LED buttons are not being updated. But it seems to work at least.

Sorry for borrowing the thread.