Home   Help Search Login Register  

Author Topic: help me run people over  (Read 1352 times)

0 Members and 3 Guests are viewing this topic.

Offline desper8

  • Members
  • *
  • REBEL Council member
    • http://rebel.clanzone.at/board/
help me run people over
« on: 23 Nov 2003, 02:37:48 »
firstly
Hi all

im currently working on a
OFP intro

in the intro i need a tank to run a friendly over
when i try it always gos around

i tried to make it run an enemy over
still the same

how do i keep my tank on a straight path

i cant find it in the cmdref.pdf
friendly clan battle any one?
PM me

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:help me run people over
« Reply #1 on: 23 Nov 2003, 13:12:30 »
I suspect it's impossible if the tank has a driver, thanks to the game's collision avoidance routines.    Try using an empty tank, controlling it with setPos or setVelocity commands.


PS - that's the best topic heading I've seen for a while! ;D 8)
« Last Edit: 23 Nov 2003, 13:13:07 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline desper8

  • Members
  • *
  • REBEL Council member
    • http://rebel.clanzone.at/board/
Re:help me run people over
« Reply #2 on: 23 Nov 2003, 14:35:24 »
mmmmm

its a good idea.
no, its a great idea but its not going to fit in my intro

ok ill tell the truth i wanted a truck to do it not a tank

when i finish this i will distribute it
but for now its under raps

thinking about it now
i could use a dummy civ
and use your setpos commands

i better look up disabling collision detection
and work on a few clever techniques

thanx macguba

do you think this should be move to the advanced section of the forum???  
friendly clan battle any one?
PM me

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:help me run people over
« Reply #3 on: 23 Nov 2003, 15:41:27 »
IMHO this thread is fine where it is.     A lot of people look at both boards anyway.

Doesn't make any difference if its a truck or a tank - the AI is designed to avoid running people over.     Might be easier to setpos the civ rather than the truck.
Plenty of reviewed ArmA missions for you to play

KyleSarnik

  • Guest
Re:help me run people over
« Reply #4 on: 23 Nov 2003, 18:44:38 »
Its easy, make the truck facing north, put the guy in front of it. Then, when you want it to run him over, do:

Truck1 setVelocity [0,60,0]

change the 60 till you get the speed right...

Offline desper8

  • Members
  • *
  • REBEL Council member
    • http://rebel.clanzone.at/board/
Re:help me run people over
« Reply #5 on: 24 Nov 2003, 02:05:35 »
thanx
ill give it a go
friendly clan battle any one?
PM me

Offline desper8

  • Members
  • *
  • REBEL Council member
    • http://rebel.clanzone.at/board/
Re:help me run people over
« Reply #6 on: 27 Nov 2003, 14:56:08 »
LOL i made the truck fly away after messing with the Truck1 setVelocity [0,60,0] code

is this only gonna boost north?

not many straight roads that go north!
mmmm maybe i can use it on the runway

because i know if i use negative values
the truck goes the opposite direction

also im havin problem setting a trigger to activate this speed boost

friendly clan battle any one?
PM me

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:help me run people over
« Reply #7 on: 27 Nov 2003, 16:19:44 »
Play with the numbers in the array to get the direction you want.   The three components are east-west, north-south and up-down.    The bigger the numbers, the faster he goes.  As you have already discovered,

[0,-60,0]  is south

[50,0,0] is probably east

[-90,90,0] might be north west

and so on.    So once you have found the bit of road, just play with the numbers till it looks right.

What problems are you having with the trigger?
Plenty of reviewed ArmA missions for you to play