Page 1 of 1
Possible to set unit to hold-fire automatically when built?
Posted: 14 May 2007, 18:24
by TradeMark
I think i need to script that in, but thats not an issue, so what kind code i need?
Posted: 14 May 2007, 18:45
by KDR_11k
set STANDINGFIREORDER to 0; ? I heard that works.
Posted: 14 May 2007, 18:47
by jackalope
set factory to hold fire, problem solved.
Posted: 14 May 2007, 19:06
by TradeMark
jackalope wrote:set factory to hold fire, problem solved.
But its a building.
STANDINGFIREORDER=0 didnt work...
Posted: 14 May 2007, 20:12
by rattle
Did you put the line KDR mentioned in the Create() function?
Posted: 14 May 2007, 20:34
by TradeMark
rattle wrote:Did you put the line KDR mentioned in the Create() function?
OH, that was script :D
lol, i tried to unit fbi file.
Doesnt work.
I used:
Code: Select all
Create()
{
set STANDINGFIREORDER to 0;
...
Compiler says: Error (41): Unknown identifier STANDINGFIREORDER
Posted: 14 May 2007, 21:10
by Peet
STANDINGFIREORDERS
Posted: 14 May 2007, 21:22
by rattle
It needs to be defined as well.
Posted: 14 May 2007, 21:45
by TradeMark
rattle wrote:It needs to be defined as well.
How?
Posted: 14 May 2007, 21:48
by KDR_11k
#include "exptype.h"
I think it's defined there.
Posted: 14 May 2007, 22:32
by rattle
It is.
Code: Select all
#define STANDINGMOVEORDERS 2 // set or get
#define STANDINGFIREORDERS 3 // set or get
Posted: 14 May 2007, 22:41
by TradeMark
Cant get working, now that whole unit cant shoot at all :S
Posted: 14 May 2007, 22:43
by trepan
rts/Sim/Units/COB/CobInstance.cpp:
Doesn't look like it's implemented (empty cases).
Posted: 14 May 2007, 23:40
by rattle
Posted: 14 May 2007, 23:44
by TradeMark
Hurray!
Posted: 23 May 2007, 13:50
by rattle
Bump. It's commited, so you can use it in 0.75.