I wrote the following script so that pickupable items that are scaled can be dropped with the item still scaled. This script was written primarily for misc items ( the ones interior designers like to scale). Does anyone see any problems with it?
begin TR_Keep_Scale;float keep_scaleshort OnPCDropshort OnPCAddif ( MenuMode == 1 ) if (OnPCDrop == 1) SetScale keep_scale set OnPCDrop to 0 Return endif Returnendif ;Must use OnActivate - If you use OnPCAdd the scale is reset to 1.0 before I can keep it.if ( OnActivate == 1 ) set keep_scale to GetScale Activate Returnendif;Just incase there is a way for the player to drop the item without using the menuif (OnPCDrop == 1) SetScale keep_scale set OnPCDrop to 0 Returnendifend TR_Keep_Scale