Addons & Mods Depot > Arma2 - Configs & Scripting

Will this here OFP model script work with ArmA2:OA?

(1/2) > >>

uk_sapwn:
Is there anything here i should/can change  to make sure my first mod goes ingame okay.

Thankyou guys!


--- Code: ---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";
}
}
--- End code ---

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

Wolfrug:
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.

uk_sapwn:
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 :)

kju:
Proper config:


--- Code: ---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;
};
};
--- End code ---

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

Wolfrug:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version