OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Bad Maniac on 21 Apr 2003, 18:47:51

Title: How to get a tank crew to turn in?
Post by: Bad Maniac on 21 Apr 2003, 18:47:51
I have an AI controlled East tank called e_tank1, and I set it's behaviour to "safe" so they will follow the road, but I still want the crew to be inside the tank.
I tried:
e_tank1 action["TURNIN"];          ???        (tried with and without ;  )

but it doesn't work, please help me, URGENT!
Title: Re:How to get a tank crew to turn in?
Post by: macguba on 21 Apr 2003, 18:54:59
try the switchmoves ... you'll probably have to do it on each crewmember, not the tank (i.e. tank1C, tank1G, tank1D)

list in ed depot
Title: Re:How to get a tank crew to turn in?
Post by: Bad Maniac on 22 Apr 2003, 01:19:31
Then just for reference, what good is the action "TURNIN"  ???
Title: Re:How to get a tank crew to turn in?
Post by: titan on 22 Apr 2003, 01:22:07
your tanks called  e_tank1, and the command u tried was

e_tank1 action["TURNIN"];          


....umm, in this ur asking the tank to turn in! U need to ask the crew to turn in!!!
Title: Re:How to get a tank crew to turn in?
Post by: Bad Maniac on 22 Apr 2003, 19:53:31
Right Titan, I was suspecting something like it, but I assumed that the Game would be clever enough (DOH!)

Could you give me a pointer here, is there an easy way to give each member of the tank crew this order in the init field of the tank?
Title: Re:How to get a tank crew to turn in?
Post by: macguba on 22 Apr 2003, 20:44:06
Syntax not guaranteed, and I haven't tried it, but you could probably put this in init.sqs

"_x action blah blah" forEach [tank1C, tank1D, tank1G, tank2C, tank2D, etc .... ]