OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Trash Can Man on 16 Aug 2005, 01:47:00

Title: I need alittle help
Post by: Trash Can Man on 16 Aug 2005, 01:47:00
I am making a mission that requires stealing a T-90 and bring it to a catpured airfield. What I can't figure out is how to make a specific trigger that knows when the tank has arrived. Also, I need to make a trigger the Ends the mission in Failure if the tank gets destroyed. Is this possible without a script?

Regards,
Trash Can Man
Title: Re:I need alittle help
Post by: Pilot on 16 Aug 2005, 01:55:27
Uhh, maybe try the following:
Problem 1:
Make a trigger that covers the airfield and set it to west present (or whatever side the stealer is on)
Then, in the condition field, type:
player in thislist and player in TankName

Where TankName is the name of the T-90

Problem 2:
Put the following in the condition field of a trigger:
Not alive TankName

Where TankName is the name of the T-90

-Student Pilot
Title: Re:I need alittle help
Post by: Mr.Peanut on 16 Aug 2005, 14:49:30
Problem 1:
You can also group a trigger to a unit.  Place an any unit present  trigger.  Click on group button, then drag a group line between the trigger and the T-90.  Then only the T-90 will set off that trigger.
Title: Re:I need alittle help
Post by: Pilot on 16 Aug 2005, 18:13:46
IIRC grouping a trigger to an empty vehicle won't work.  I am assuming the T-90 that the player must steal is empty.  I would be glad to be proven wrong on this, however.

-Student Pilot
Title: Re:I need alittle help
Post by: ROBINO on 16 Aug 2005, 19:17:15
Or try this inside a trigger:

Code: [Select]
tankname distance log1 < 100
where tankname is name of tank
log1 is a gamelogic placed at the airfield

also instead of using:

Code: [Select]
not alive tankname
it is better to use:

Code: [Select]
not canmove tankname
because your tank could get its tracks blown or disabled but not actually be dead
Title: Re:I need alittle help
Post by: Trash Can Man on 16 Aug 2005, 21:39:55
Does gamelogic need to be named, or is "log1" the name?
Title: Re:I need alittle help
Post by: Pilot on 16 Aug 2005, 21:44:38
The gamelogic will need to be named.

@canmove vs !alive
Doh!  That's right, I had forgotten about that. ::)  Thanks, ROBINO.

-Student Pilot