Author Topic: Again with onPlant(%this) and that - solved...  (Read 387 times)

onPlant() is this, correct? function fxDTSBrick::onPlant(%brick)

The %brick value is a datablock in practice and not the brick's ID. Is there any way around this or is something messing with it like last time?
« Last Edit: January 01, 2016, 08:50:37 AM by Pastrey Crust »

You have these two:

fxDTSBrick::onPlant(%brick)
fxDTSBrickData::onPlant(%data, %brick)

Note that by default, the first one simply calls the second on the brick datablock. That's... the only point of it??

Use the one that makes more sense for what you're doing

Weird, fxDTSbrick::onPlant is returning the datablock but using the other it returns the datablock and the brick. I'll stick to fxDTSbrickData.