OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
Dont you just press S and the driver goes bacwards ?
SideRadio : Reverse.
Or have i misunderstood your question?
Rhys
-
I think he means, how do you make it happen from a trigger: what is the code?
Dunno.
-
Can it not be done with setvelocity? Dunno also really...
-
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.
-
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
-
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.
-
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
-
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
-
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
-
Thanks alot for the help guys =)
-Tet