Home   Help Search Login Register  

Author Topic: anybody in a certain vehicle?  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

gundernak

  • Guest
anybody in a certain vehicle?
« on: 10 Jan 2004, 23:44:02 »
I would like my loon to target that soldier who enters a certain vehicle. Anybody who enters.

or

can I check the moment when anybody entered a certain vehicle

something...:

@ 'somebody entered the vehicle'

_target = 'somebody'

mysoldier doTarget _target
mysoldier doFire _target

thanks in advance



Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:anybody in a certain vehicle?
« Reply #1 on: 11 Jan 2004, 00:01:16 »
use da getin eventhandler

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

gundernak

  • Guest
Re:anybody in a certain vehicle?
« Reply #2 on: 11 Jan 2004, 01:28:56 »
thanks

I have tryed what you wrote.

I had experimenting a lot and...

I know the guy who is entered is the 3rd argument, so he is ' _this select 2'

I can select him as the _target to doTarget and doFire...

but

I know now that the AI will not target him until he is in the vehicle.

I have set a small scenario to test it. If I create soldier01 and set him to moveInDriver in a vehicle, my loon01 does not want to target and fire him.

This happen by using eventHandler as well.

If I use a 'GetOut' eventHandler, they target and fire well, but in this case the target is out of the vehicle...

My aim is to target the soldier at the moment he enters the vehicle.

I hope you understand it, a little bit confusing...

Can anyone suggest anything to solve this?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:anybody in a certain vehicle?
« Reply #3 on: 11 Jan 2004, 01:49:45 »
Quote
My aim is to target the soldier at the moment he enters the vehicle.

i dont think it wil b posible @ all cuz from da sec da d00d chose da action 2 get in til da enemies actualy react (aiming and firing) he wil b in da vehicle already nywayz

so mebe u can only do it byguessing 2 secs b4 if da plazyer wanna get in ?

or at least dat wat i know

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

gundernak

  • Guest
Re:anybody in a certain vehicle?
« Reply #4 on: 11 Jan 2004, 02:14:30 »
ok
I mean it is ok when they will targeting if somebody enters the vehicle and stay in there. 'at the moment' was not imoportant...(my bad english)

The problem was they did not target at all...

But I solved by switching setCaptive.

I alligned my soldier as enemy. gave him setcaptive true.
And as the eventhandler effect I give setCaptive false...reveal...doTarget...doFire.
And it is working...now

Thanks LCD!!!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:anybody in a certain vehicle?
« Reply #5 on: 11 Jan 2004, 02:32:14 »
kool

just use da solve topic botton

it shud b up dere somwere ::)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

gundernak

  • Guest
Re:anybody in a certain vehicle?
« Reply #6 on: 11 Jan 2004, 02:46:50 »
 ;) yes, yes I luckily know about the existence of the solve button...

I leave the topic open for a while if anybody wants to add something...