OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Robinhansen on 07 Feb 2004, 14:08:27
-
Is it possible to end a mission by waypoints? Or how do I make a trigger activeded by the player ONLY ??? ???
-
You can group any unit to a trigger. Hit F2 and drag a line from the unit to the trigger. New options will appear.
Or
In the condition field of the trigger:
player in thislist
or even better
vehicle player in thislist
-
DO NOT end a mission with waypoints! A player in Veteran mode won't see them and the mission won't end. Never use player waypoints to make things happen.
Create a trigger. Group it to the player, like it was another loon. You now have new options in the Activation box.
Edit: garn, 19 seconds ...
-
:)
-
I need a waypoint to end the misssion becasue the player is on board a vehicle, driven by an A.I. If I use a normal endgame trigger the game might end before it is supposed to...If U know what I mean ;)
-
No it won't. ;D
Tell us exactly what ending conditions you want and we'll tell you how to do it. ;)
-
8) second that :thumbsup:
-
I want the mission to end when the player is on board an apc and sails away from the island.
The mission is to end when the apc reaches its last waypoint. If I use a trigger the mission could end before it is supposed to... ;)
-
Then u need to fool around a bit with the triggers conditon field:
player in vehiclename and this
Put that line in a trigger that cover an area where u like the mission is supposed to end when the player reaches it.
:beat: *Gets SHot* :beat:
-
If I use a trigger the mission could end before it is supposed to...
How?
Here's the [one of the] correct way to do it.
Presumably the player has to achieve an objective. Let's say that when that objective is completed the variable object1 is set to true.
I'm also presuming that the player is a group leader, though you haven't told us. (If he isn't, we'll need to tweak things a little.)
All you need is one trigger. Group the trigger to the player.
Area: the whole island and a little bit of sea
Activation box: group leader not present
Condition: this and object1
On activation: end mission stuff
Alternatively you can follow The Real Armstrong's most excellent and helpful advice. If you try and use a waypoint it's more than likely that the mission won't end at all.
-
Alternatively you can follow The Real Armstrong's most excellent and helpful advice.
8) 8) 8)
;D
:beat: *Gets Shot* :beat: