OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ollestolpe on 23 Jul 2004, 09:44:42

Title: Make Mission unplayable without ECP
Post by: ollestolpe on 23 Jul 2004, 09:44:42
Is there anything I can add to a mission to make it impossible to play without ECP?
I want to use ECP for a modified MFCTI coop mission.

But I also want to make sure that all players use ECP. Can I add anything i any file
to make it check if the player is using ECP and then make it not possible to play without it?
Title: Re:Make Mission unplayable without ECP
Post by: macguba on 23 Jul 2004, 11:55:04
You could have a trigger that checks the ECP variables and if it gets the wrong answer ends the mission.
Title: Re:Make Mission unplayable without ECP
Post by: CopyrightPhilly on 23 Jul 2004, 16:32:09
heres a good tip, make one of the soldiers or vehicals one of the ones that came with ECP that way when a user plays the map they will need to have that addon to play witch all the ECP users will have.

cheers, Philly
Title: Re:Make Mission unplayable without ECP
Post by: ollestolpe on 23 Jul 2004, 16:58:56
Thank you both for your answers. I was thinking of your idea CopyrightPhilly but I really don't wanna add those units....

So I was looking more for your idea macguba.

Do you know exactly how I could do that? I'm very new to this.
What is the syntax? Where do I put it?
Title: Re:Make Mission unplayable without ECP
Post by: macguba on 23 Jul 2004, 17:44:23
ECP has a bunch of variables that allow you to set things.   Basically they are the ECP Options affecting things like whether the flies script is turned on.   You could have a trigger in the mission

Type:  End#2
Condition:  flyscriptvariable

if the variable was true the mission would end immediately.   This is only a theory, you'll need to make further investigations of ECP.   If you don't understand fully how to use it as an editor you will struggle to acheive something tricky like this.   Fortunately the documentation is pretty good, have  a good read through it.