Home   Help Search Login Register  

Author Topic: Need a condition  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.

Mike

  • Guest
Need a condition
« on: 19 Sep 2002, 01:07:57 »
I have 6 triggers that move 6 different players one by one into a vehicle once they get within a radius, the triggers look like:

Condition: n2 distance boat5 < 15

On Activation: n2 moveincargo boat5

for all players n1, n2, n3, n4, n5 and n6
on the R1 trigger I added a driver and gunner... I want them to drive off on their waypoints that unlock when all the living players are in, so its not waiting for a dead player.. the n1-n6 are in 2 seporate groups n1-3, n4-6.

What condition can I use to check if all living players have boarded the vehicle? and\or maybe if someone could put a script together for all this..

To check if each unit is within this radius and one by one board them, when all in sets fuel to 1?

Thanks in advance or just reading  :cheers:
« Last Edit: 19 Sep 2002, 01:09:55 by Mike »

Rodd

  • Guest
Re:Need a condition
« Reply #1 on: 19 Sep 2002, 01:53:36 »
my scripting is not the best but I think it will do untill we get a real answer ;D

Your triggers are called R1, R2 ... R6. Assuming that you haven't already used the names t1, t2, ..., t6 for anything you can make the activation field of R2 n2 moveincargo boat5; t2= true;  and so on for R3, R4 ... R6.
 Now fill the condition field for the loading waypoint of the boat with
Code: [Select]
(t2 or !alive n2) and (t3 or !alive n3).... and (t6 or !alive n6) and the boat should wait at the waypoint untill all of the players n2, ..., n6 have boarded or are dead.




Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Need a condition
« Reply #2 on: 19 Sep 2002, 01:57:48 »
I'd suggest using a couple of triggers... looking something like this:

Trigger

Radius: 0,0
Condition: none
Condition field: "_x distance boat < 40" count units group == west countside units group
OnActivation field: "_x moveincargo boat" foreach units group

To get them into the boat once they are within 40m (15m is a bit too close... the formation spacing is about 20). Then something like this to give the boat it's fuel:

Trigger

Radius: 0,0
Condition: none
Condition field: "_x in boat" count units group == west countside units group
OnActivation field: boat setfuel 1

Hope you can modify that to suit your needs ;)

Mike

  • Guest
Re:Need a condition
« Reply #3 on: 19 Sep 2002, 02:23:34 »
Ok what im really trying to do is have some players jump off of the cliffs of malden and get in a get away boat, it would be more realistic if I could stall them in the water for a bit, because the player would die landing in a boat in real life.. maybe I can camcreate and attach a parachute?.. The player is only at around 2-4 meters from the ground the whole fall. It would probably hit the edge of the cliff and kill the player. It might work if I can somehow set the players pos out a bit or somehow make them "eject" like from a heli? but without the heli  ???


I hope that makes some sence

so far the players are boarding fine.. if u jump right, but it is set up easy.

Im not verry good with scripts yet but im getting there..

my sudgestion on maybe what I could do:?

make a trigger for each unit on the cliff edge..

attach a parachute to the player

then make a player setpos get pos, move him to the right location, maybe the trigger as the location, it should fall from as close to center as possible,

a short delay ~3

then the opening a parachute hey had on

command to detect who is using the trigger..?

get that player to board boat,

Condition:
On Activation:

player distance boat < 15
player moveincargo boat

all units in boat setfuel 1

exit

I dont know the commands but the general idea is there.. is it possible?
« Last Edit: 19 Sep 2002, 02:29:05 by Mike »