Home   Help Search Login Register  

Author Topic: making a trigger move and units move and follow enemy  (Read 640 times)

0 Members and 2 Guests are viewing this topic.

mischa

  • Guest
Well i don't know if it's possible and there might just be a way easier, which i'd gladly like to hear.


First.

In my mission you will run/drive over a road, but you see an enemy jeep coming, so you hide, now i only need the jeep to stop and getout if you (the west player) are spotted. So a getout command synched to a trigger with West detected by east.  I can make a very big trigger that covers the road, but since its not straight and very long, I thought maybe I can make that trigger with x:50 y:50 and West detected by east and it sort of moves with the jeep, so its bound to it(jeep) and follows it(jeep)? Or do i oversee any easier ways?? :)

Second.

You have to sneak upon a airport and steal an airplane, without getting the enemy's attention and shooting any of them. Now if you takeoff, the enemy will see you, and the alarm is triggered. But i want that if something goes wrong like you have been spotted before being in the plane, a special group of men willl go to the place where you were spotted and then follow you? Or is that impossible or to hard for a beginner? :D

well i hope it's not impossible what i want, and thx in advance



Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:making a trigger move and units move and follow enemy
« Reply #1 on: 29 Dec 2003, 15:46:37 »
1)

what about a trigger with 0/0 x/y axis and as condition:

driver jeep_name knowsabout player > 0

or:

"_x knowsabout player > 0" count (units jeep_grp) > 0


2)

could easily be done by a trigger (covering the airport area)
type: guarded by east

then place an east group and give them a guard waypoint.

Now they will go for any agressor being detected in that
given trigger's area.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

mischa

  • Guest
Re:making a trigger move and units move and follow enemy
« Reply #2 on: 29 Dec 2003, 19:27:04 »
ok that sounds easy, but i've got one tiny little problem.

If the trigger (where the jeep sees the player) is activated, i need the driver + cargo to get out and shoot the enemy. Well the shooting part can be done with setcaptive, but how wit the waypoint, because the jeep is driving allong the road and at the end of the trip they unboard, but i also need um to unboard if they see the player.

Where do i put the getout wp for the unboarding when they spotted the player? (but the jeep must not be delayed by this wp on its trip)







« Last Edit: 29 Dec 2003, 19:27:34 by m.038 »

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:making a trigger move and units move and follow enemy
« Reply #3 on: 29 Dec 2003, 19:47:00 »
you could use the trigger's onActivation field for that:

"unassignVehicle _x" forEach crew jeep_name; [crew jeep_name] orderGetin false; "_x doMove getpos player" forEach crew jeep_name

I suppose, you may want to have them reboard the jeep,
if they can't find the player anymore.

Therefore you could use the onDeactivation field of the trigger,
which becomes activated, once the trigger's condition doesn't
match anymore (knowsabout equal 0)
Off course the trigger needs to be set to repeatedly, to be
able to use the onDeactivation field.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

mischa

  • Guest
Re:making a trigger move and units move and follow enemy
« Reply #4 on: 29 Dec 2003, 20:04:01 »
the only things i should change are player and jeep_name right??

because i did that and its sort of not working


but thx anyway for getting me on the road

mischa

  • Guest
Re:making a trigger move and units move and follow enemy
« Reply #5 on: 30 Dec 2003, 18:42:01 »
i'm very sorry to bring this up again but i tried several combinations of the above but it actually never seemed to work the jeep just drover along :(

i don't know if i made the mistake but i just copied it and changed the jeepnamen into jeep1 and the player into player, offcourse is the jeep called jeep1 and the player player`

or is the code wrong,


thx if someone knows the answer