OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SneakyPete on 12 Apr 2005, 15:22:32
-
Is it possible to get a tank to stay still and target an object by rotating the turret only and not the whole body?
-
errr yes? don't you just seat yourself as the gunner?
-
;D Very funny.
This is an AI controlled tank that I want to use in a cutscene.
-
Try
tank1 setfuel 0
:beat: *Gets Shot* :beat:
-
or even
deletevehicle tank_nameD
or
tank_nameD setpos someplace_else
which will get rid of the (D)river, leaving only the gunner to rotate his turret with a dowatch or dotarget command.
just a thought, no idea if it'll work or not. helpful eh? :P
-
I suppose you could just make a tank with out a driver and then use setvelocity to make it look like its driving, and have the gunner target something, however it would proboby be easier to just driverdude disableai "Autotarget".
-
wouldn't doTarget just do it without removeing the driver?
-
And the winner is.....
No fuel works.
DoTarget does not.
Remove driver works.
Haven't tried the deletevehicle tank_nameD thing yet as I have no idea what that means.
With the tank on the move it rotates the turret fine. Its just when its stationary that causes the problem.
It always amazes me that whatever you ask someone always has an answer.
Thanks guys.
-
It always amazes me that whatever you ask someone always has an answer.
It is true - it is very unusual for a question on this board not to be answered.
-
tank_nameD would indicate the driver of the unit called tank_name. similarly, tank_nameG will indicate the gunner, and tank_nameC the commander. handy for those loons already in vehicles that you want to grab for some reason :)
-
Cheers Bedges,
Now I understand. :thumbsup:
-
Bedges:
those commends works???? like Tank1D??? I mean, thy are similar to driver tank1 Right??? or you just name them...??
-
both. tank1D is the same as driver tank1, just needs less typing ;)