Home   Help Search Login Register  

Author Topic: Err wrong  (Read 824 times)

0 Members and 1 Guest are viewing this topic.

O Neil

  • Guest
Err wrong
« on: 16 Dec 2002, 04:22:15 »
Hey

How do you make the game end in 'loose' if you do something wrong? Like get outta car when your not supposed to?

Just a thought. Not that important

Thxs ;)

kevinfostereditguy

  • Guest
Re:Err wrong
« Reply #1 on: 16 Dec 2002, 14:50:27 »
you can always try the-

?!(player in car)

command to check if the player leaves the car, or just lock the car on its options in the editor if u dont want the player to leave it

O Neil

  • Guest
Re:Err wrong
« Reply #2 on: 17 Dec 2002, 03:21:15 »
Twos ye example. Not ye blunder

PS: Don't ask

PS: It was an example, not specifically

Stu35

  • Guest
Re:Err wrong
« Reply #3 on: 19 Dec 2002, 01:42:33 »
well, set up yer trigger with the type: Loose AND something, then do whatever in the activation field,

in order to make it work you need to put it where something is true when you Want the trigger to take effect, and becomes false when you no longer want him to be punished for whatever...


follow me?

no, didnt think so.


right, lets use the car example...

say you want him to move between 2 waypoints without getting out of the car, when he gets to the first waypoint put in the activation field:

lostrig=true

and at the second waypoint put

lostrig=false

, now make a trigger with the type being LOOSE with the condition field

not (player in CARNAME) AND lostrig


where CARNAME is the name of the car , im not entirly sure if that will work, but it is just an example after all,

basically you need the syntax for whatever it is you want him to fail on, and something to tell you that he is in that area.

now an important note - you can only use this once, because if you set more than one trigger to a certain end condition (such as end#1 or loose), then it will not end the mission until ALL those triggers are true.


O Neil

  • Guest
Re:Err wrong
« Reply #4 on: 22 Dec 2002, 07:57:58 »
.......ok, so, What if you kill one of your team members ? Or even shoot him.

O Neil ;)

micropilot

  • Guest
Re:Err wrong
« Reply #5 on: 22 Dec 2002, 09:26:25 »
.......ok, so, What if you kill one of your team members ? Or even shoot him.

O Neil ;)

see this http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=4615 thread for a  way to use EventHandlers, and the EventHandlers parts of the Official command ref.

I would think you could put an eventhandler in each vehicles init line that checks to see when they have been hit, who hit them and then checks to see if they are supposed to be firendly, and if so, then ends this mission as a loss.

anyone have a simpler way of doing this?