Jump to content
Sign in to follow this  
OneStiffRod

How to tell if someone has ofp-r or orig game?

Recommended Posts

Is there any command I can use in scripting that will let me determine if someone is running my mission in the OFP-Res version or the Original OFPv1.46??

I want to produce a single version of my mission, but if someone is using the OFP-R version I want my special scripts that use the new commands to be loaded and if they are using the orig. game my regular scripts will be loaded.

Share this post


Link to post
Share on other sites

Only thing i know is this:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">requiredVersion version

Operand types:

version: String

Compatibility:

Version 1.21 required.

Type of returned value:

Boolean

Description:

Check if version of application is available. If not, show warning message and return false. Version format is "Major.Minor", e.g. "1.30".

Example:

requiredVersion "1.30"<span id='postcolor'>

~S~ CD

Share this post


Link to post
Share on other sites

That would work as a dirty solution for now but what I probably need is to check whether someone has the Addons like the Nogova addon would signal that they have RESISTANCE.

Share this post


Link to post
Share on other sites

Just use:

requiredVersion "1.75"

Then the player will have the required addons.

RED

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×