OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Void-DK on 12 Jun 2004, 14:42:15

Title: Reverse a tank?
Post by: Void-DK on 12 Jun 2004, 14:42:15
aka making it reversing through a trigger - ala the "backwards key" when you are in it as a commander.

Anyone know the command line for it?=)


Thanks in advance :)


-Tet
Title: Re:Reverse a tank?
Post by: rhysduk on 12 Jun 2004, 14:52:52
Dont you just press S and the driver goes bacwards ?

SideRadio : Reverse.

Or have i misunderstood your question?

Rhys
Title: Re:Reverse a tank?
Post by: macguba on 12 Jun 2004, 18:49:22
I think he means, how do you make it happen from a trigger:  what is the code?

Dunno.
Title: Re:Reverse a tank?
Post by: Skanderborgvej on 12 Jun 2004, 21:28:10
Can it not be done with setvelocity? Dunno also really...

Title: Re:Reverse a tank?
Post by: surpher on 13 Jun 2004, 11:05:51
Yes it can just experimented. Put a tank on the map with the direction set at 270, and put the following in a trigger.

tank setvelocity [ 50, velocity tank select 1, velocity tank select 2]  

You just have to play around with the direction.
Title: Re:Reverse a tank?
Post by: DBR_ONIX on 13 Jun 2004, 11:22:28
I think he means that he wasnts the tank to drive backwards.. Like when you press the S button

Is this for a cut scene or what?
Setvelocity will make the tank slide backwards really quickly, and slow down quickly too.. YOu need to make a script that hcecks if the tank is under 40 velocty, and setveolcity him again etc.. NOt the best..

-Ben
Title: Re:Reverse a tank?
Post by: surpher on 13 Jun 2004, 11:37:55
A velocity of 50 does not look to bad. I suppose it depends on how far he wants to reverse the tank, and wether in a straight line or not. Attached the mission file anyway.
Title: Re:Reverse a tank?
Post by: Void-DK on 19 Jun 2004, 17:42:47
Want it to reverse for 200-300+ meters, its to be used in the actual mission not in a cutscene, with a tank position thats pulling(boxing its way) away from the line with you (tanks in the real world rarely do a 180 turn like ofp tanks tends to do)

Dont you just press S and the driver goes bacwards ?

Thats the thing i want em to do - but through a trigger and without me being in the tank :)


-Tet
Title: Re:Reverse a tank?
Post by: DBR_ONIX on 19 Jun 2004, 22:04:49
Hmm.. Thats what I though you meant..
But I don't think it's possible..
You could try the setvelocity -50 repeatedly idea...
You can't really make the AI press buttons, if ya see what I mean :(

- Ben
Title: Re:Reverse a tank?
Post by: Void-DK on 22 Jun 2004, 19:17:25
Aye i see what you mean, but was hoping that the driver got a command, when you pressed the backwards button - could seem like it atleast.


-Tet
Title: Re:Reverse a tank?
Post by: Void-DK on 23 Jun 2004, 13:58:39
Thanks alot for the help guys =)


-Tet