Particle's Custom RPG
Assistance => Assistance & Feedback => Topic started by: Nittmo on August 28, 2004 06:12 pm CDT
-
Hi, I was wondering how to add to StaticShape.cs in order to get more DTS Shapes in the creator Menu in the Tribes Mission Editor? can someone walk me through how to add lets say, "Shield1.dts" in the editor?
-
Just mimic the other entries. It's pretty simple. There are two types of shapes. Check the water and check buildings for the two types of entries.
-
StaticShapeData Shield1
{
shapeFile = "shield1";
maxDamage = 99999.0;
isTranslucent = "False";
description = "Shield";
};
I tried that and it failed to show up in the Editor, it's a copy and pasting of another entry only with "Shield1" for "shapeFile", "Shield" in "Description" and "Shield1" for a heading. Here is the original of what I copied from
StaticShapeData TreeShape
{
shapeFile = "tree1";
maxDamage = 9999.0;
isTranslucent = "True";
description = "Tree";
};
-
Wrong file, try registeruserobject.cs
DTS
MissionRegObject( RpgItems, "sword", MissionCreateObject, sword, StaticShape, sword );
MissionRegObject( Phantom, "PhantomTree2", MissionCreateObject, PhantomStrangerTree2, StaticShape, PhantomStrangerTree2 );
DIS
missionRegDis(AK, tent);
-
Putting "MissionRegObject( RpgItems, "sword", MissionCreateObject, sword, StaticShape, sword );"
into RegisterUserObjects got me a step closer, now it shows up in the editors menu, but when I click it, it wont show up
-
Are you trying to get things like the broad sword or spear on to the map as solid objects?
-
Yes, so I can have like an Armory that has shields hung on the wall
-
*Double post* Sorry
-
MissionRegObject( RpgItems, "sword", MissionCreateObject, sword, StaticShape, sword );
That worked at first, then I tried to get a little more specific, and instead of putting it in group RPGItems, I cahnged that to RPGWeapons, while I was at that I added all the other DTS's that come with TRPG, now it wont work anymore
-
heres code examples:
Heres what I used in RegisterObjects.cs to register it with the editor
MissionRegObject( RpgItems, "Sword", MissionCreateObject, Sword, StaticShape, Sword );
Heres what I used to define what "Sword" is in StaticShape.cs
StaticShapeData Sword
{
shapeFile = "Sword";
debrisId = defaultDebrisSmall;
maxDamage = 6.50;
visibleToSensor = false;
isTranslucent = true;
description = "Generic Sword";
};
function Sword::onDestroyed(%this) {
StaticShape::onDestroyed(%this);
}
it comes up in editor menu list, but it wont come up in when I click it
-
Heres what I used to define what "Sword" is in StaticShape.cs
StaticShapeData Sword
{
shapeFile = "Sword";
debrisId = defaultDebrisSmall;
maxDamage = 6.50;
visibleToSensor = false;
isTranslucent = true;
description = "Generic Sword";
};
function Sword::onDestroyed(%this) {
StaticShape::onDestroyed(%this);
}
it comes up in editor menu list, but it wont come up in when I click it
Why do you do that? Its already a recognized static shape to rpg mod.
Try copying all your files to the Base directory.
Edit: Yea, sorry didnt copy that last bit of it, sorry, glad you figured it out though.
-
nice quadruple post