Author Topic: Grabbing a brick datablock right when its created  (Read 1473 times)

Like this.
Code: [Select]
datablock fxDTSBrickData(brick2x2PictureFrameData)
{
brickFile = "./2x2PictureFrame.blb";
category = "Special";
subCategory = "Decorative";
uiName = "2x2 Picture Frame";
iconName = "Add-Ons/Brick_DecorativeBlocks/2x2PictureFrame";

hasPrint = 1;
printAspectRatio = "2x2f";
};
That will create a print brick in the subcategory 'Decorative'.
The problem:

DUPLICATOR (yes) will only duplicate print bricks, if they are in the subcategory 'Prints'.
So can I grab the datablock with something like fxdtsbrickdata::onadd(%this, %unknown, %args, %here)
Then check if(%this.hasprint)
And if it's true set %this.subcategory = "Prints";
Then continue on with the creation?

Nvm Plornt made a duplorcator
« Last Edit: August 29, 2012, 03:01:26 PM by Mold »

« Last Edit: September 28, 2012, 03:59:33 PM by LolKid100 »

Lock it...

It's a general rule of thumb not to lock in Coding Help



What the uber epic reasonless crappy stuff of a bump


*sings numa numa
why would you bump an old thread that no one has any interest in anymore just to tell the creator to lock it

Why do mold and blocki have the same avatar?


Why do mold and blocki have the same avatar?
They're the same person.

They're the same person.
well, I see mold is banned, has he had an alt ready since 2010 or something


Why are you using two accounts