Looking for a script to scale placeable size.
TKBold
Member Posts: 15
I have a script that allows me to scale up NPCs with an OnSpawn script line, and adding a Scale Variable with a float integer, and let me tell you if that isn't one of the greatest things ever.
Though, now I've got to account for larger objects as well. Nothin' too big or fancy, just a simple, full XYZ object Scale. If anyone knows how to find one, or if they have one on hand, I'd be especially much obliged.
Though, now I've got to account for larger objects as well. Nothin' too big or fancy, just a simple, full XYZ object Scale. If anyone knows how to find one, or if they have one on hand, I'd be especially much obliged.
0
Comments
It does work, but it doesn't seem to work for Static objects. Any way to get around that?
Can you post the script for scaling NPC's? Does it work with part-based creatures with armors, shields and helmets?
Sure! I kind of got mine piggybacked on one of the default spawn scripts but the way it works is basically the same as the object one. Variables, Scale, float integer. Pretty sure it was like that when I got it. And it will scale up or down, literally any creature you have the OnSpawn and the Variable attached to. 1 is default, 2 is double-sized, 0.5 is half-sized, etc.
Well yuh, that's the obvious solution, but I was wondering if there was a way to have it go into effect as a static object? If the Static box thing is turned off, if you move far enough away from the object, it will disappear. It's probably one of the only really annoying things with NWN and modern systems. Alternate solution would be to find a way to increase the 'view' range, or disable it altogether.
The term "static" means that the appearance is baked before the game starts, just like the tiles. So, scaling during the game is dynamic, not static, by definition. The only way I can see static scaling working is if Beamdog could allow scaling in the toolset to be hard baked - anything done by script can only apply to dynamic objects.
Boooooo. If there's some way to increase the visibility range on things, I'd be okay with that.
https://forums.beamdog.com/discussion/75035/nwn-toolset-enhanced-edition-try-the-new-updates-and-share-your-feedback#latest
I'm having trouble scaling items when they are equipped. The tag-based scripting is running as it should, as I am able to debug the equipping PC and the item they equipped.
The only line that doesn't seem to be firing is the scaling code itself, and it doesn't make any sense to me. I've been able to scale creatures and placeables through scripting just fine. I've also seen screenshots of scaled weapons, so I'm pretty sure it can be done.
Thanks for your help!
I think SetObjectVisualTransform() checks if the item is actually equipped by a character but when the OnEquip event runs the item isn't actually equipped yet.
To work around it, you can do something like: