Home   Help Search Login Register  

Author Topic: Will this here OFP model script work with ArmA2:OA?  (Read 3021 times)

0 Members and 1 Guest are viewing this topic.

Offline uk_sapwn

  • Members
  • *
Will this here OFP model script work with ArmA2:OA?
« on: 27 Nov 2010, 01:50:53 »
Is there anything here i should/can change  to make sure my first mod goes ingame okay.

Thankyou guys!

Code: [Select]
class CfgPatches
{
class Crate
{
units[] = {Crate};
weapons[] = {};
requiredVersion = 1.0;
};
};
class CfgVehicles
{
class All {};
class Static: All {};
class Building: Static {};
class NonStrategic: Building {};
class TargetTraining: NonStrategic {};
class TargetGrenade: TargetTraining {};

class Crate: TargetGrenade
{
model="\crate\crate";
armor=20000;
scope=2;
displayName="My crate";
}
}

is there anything needs changing to work with A2:OA?


Thanks again, Spawn,

EDIT: I just went and tried it, and it shows up under "targets" , not sure how to change that, and when i place it it gives an error saying "No Player Was Selected!".
So somthing isnt quite there yet , Oh well, keep trying :)

Thnx again
« Last Edit: 27 Nov 2010, 02:37:36 by uk_sapwn »

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Will this here OFP model script work with ArmA2:OA?
« Reply #1 on: 27 Nov 2010, 13:47:10 »
The "no player was selected" 'error' just means you haven't placed down a playable unit. I'm sure you've gotten that a million times, no? Just place down a unit and go look at the crate to see if it shows up all right!  :cool2:

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline uk_sapwn

  • Members
  • *
Re: Will this here OFP model script work with ArmA2:OA?
« Reply #2 on: 27 Nov 2010, 19:55:44 »
Thats what i was thinking so i put a single blu-for playable, and saved it, tried again and still the same error?

so that script is okay? why is it apearing in "targets" , what bit do i change to make it appear in say "objects" or somthing else?

Thanks for the reply :)

Spawn :)

EDIT: Hmm, it must be because i put in the crate then the player? because when i did it today , i p ut the player in first , and then my crate... and it works! so, AWSOME!

My First Add-On is Complete! woo-hoo,

 Thankyou all for the help :)
« Last Edit: 27 Nov 2010, 20:02:32 by uk_sapwn »

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: Will this here OFP model script work with ArmA2:OA?
« Reply #3 on: 28 Nov 2010, 08:51:33 »
Proper config:

Code: [Select]
class CfgPatches
{
class MyTag_CfgPatchesClassCrate
{
units[] = {"MyTag_Crate"};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"CAMisc3"};
};
};
class CfgVehicles
{
class TargetGrenade;
class MyTag_Crate: TargetGrenade
{
displayName = "My crate";
scope = 2;
model = "\MyTag_crate\crate";
armor = 20000;
};
};

+ Look closely at the changes.
+ Get notepad++ ASAP.
+ If its an ammocrate, you should base it on a BI ammo create class.

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Will this here OFP model script work with ArmA2:OA?
« Reply #4 on: 28 Nov 2010, 09:54:19 »
kju speaks the truth. Use OFPEC Tags whenever you create anything you're planning on releasing; heck, even when it's something just for personal use! It makes everything so much easier and less prone to fail spectacularily due to overwriting configs and so forth. Here's the FAQ on tags, and here's the BIKI entry on them!

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline uk_sapwn

  • Members
  • *
Re: Will this here OFP model script work with ArmA2:OA?
« Reply #5 on: 17 Mar 2014, 18:09:01 »
Thanks for that all, that stuff about the @TAG I have taken into account and definitely will be doing that with any released things.

Sorry its a late reply,
Regards,
SPAWN