Hi guys i've made up some custom object models and packed them to cache with Frostys. What i can't figure out is how to assign an Object Id to it, i have the model id's and have verified they're in the cache. A friend sent me some code for objectDefinitions to overwrite another model but it doesn't seem to be working. Any help much appreciated here's what i've got so far in ObjectDefs client side, the haybales are still spawning and i've spent hours trying to figure it out. Thanks
Code:
void decode(RsByteBuffer stream, int i, int i_0_) {
try {
if (1 == i) {
int i_1_ = stream.readUnsignedByte();
aByteArray5430 = new byte[i_1_];
modelIds = new int[i_1_][];
for (int i_2_ = 0; i_2_ < i_1_; i_2_++) {
aByteArray5430[i_2_] = stream.readByte(-12558881);
int i_3_ = stream.readUnsignedByte();
modelIds[i_2_] = new int[i_3_];
for (int i_4_ = 0; i_4_ < i_3_; i_4_++)
modelIds[i_2_][i_4_] = stream.readBigSmart(1235052657);
}
//Wood Fence Prefab's x3
if(anInt5365 == 36892) { //Hay bale object id
modelIds[0][0] = 71656; //Middle Fence Model ID
}
if(anInt5365 == 36893) { //another hay bale object id
modelIds[0][0] = 71655; //Corner fence model id
}
if(anInt5365 == 36894) { //yet another hay bale object id
modelIds[0][0] = 71657; // Diagonal fence model id
}