Enable In Game Editing of TSE Water
by Josh Moore · 09/27/2005 (3:23 pm) · 3 comments
Enable in game editing of TSE water by setting the InitialUpdateMask in inspectPostApply.
In waterBlock.h, after:
Then in waterBlock.cpp, add this anywhere you want(I stuck it at the end of the file):
In waterBlock.h, after:
void unpackUpdate(NetConnection *conn, BitStream *stream);Add:
void inspectPostApply();
Then in waterBlock.cpp, add this anywhere you want(I stuck it at the end of the file):
void WaterBlock::inspectPostApply()
{
if(isServerObject()) {
setTransform(getTransform());
setScale(getScale());
setMaskBits(InitialUpdateMask);
}
}About the author
Torque Owner Vashner