SatanTM Posted September 29, 2022 Share Posted September 29, 2022 So I'm unsure of if this is in the right spot, if not, I apologize. Does anyone know if there is an item that are floating witch hats? Kind of like Harry Potter vibes? Looking to add it to my small home. Or if you have an idea of how I could DIY it I'd love that too. Link to comment Share on other sites More sharing options...
Fluffy Sharkfin Posted September 29, 2022 Share Posted September 29, 2022 17 minutes ago, SatanTM said: So I'm unsure of if this is in the right spot, if not, I apologize. It's probably not, but since you're here now... By a strange coincidence I just swapped back to 3D Coat after taking a "short" break to check the forums and found this deformed cone I'd been absent-mindedly playing with... it may even end up as a witch hat eventually if I don't get distracted by something shinier! I'd imagine there are plenty of witch hats available on the marketplace though, and if you can't specifically find one that floats then try to at least find one that's modifiable and you can perhaps drop a "floating script" in it. 2 Link to comment Share on other sites More sharing options...
Rick Nightingale Posted September 29, 2022 Share Posted September 29, 2022 (edited) If you have (or buy) a hat that has modify permission, it's easy to script it to bob up and down. The more complex you want the floating to be, the more scripting would be involved. Better to ask in the scripting forum in that case. This script will bob up and down, you can change the height and speed in the variables near the top. Click to start, click to stop. Drop it into a rezzed cube to try it out: vector gInitPos; float gStep=1.0; // metres up/down float gTime=5.0; // seconds up/down integer gRunning; default { state_entry() { llSetPrimitiveParams([PRIM_PHYSICS_SHAPE_TYPE, PRIM_PHYSICS_SHAPE_CONVEX]); } touch_start(integer num) { if (gRunning=!gRunning) { llSetKeyframedMotion([],[]); llSetPos(gInitPos); } else { gInitPos=llGetPos(); llSetKeyframedMotion([<0,0,gStep>,gTime,<0,0,-gStep>,gTime],[KFM_DATA,KFM_TRANSLATION,KFM_MODE,KFM_LOOP]); } } } Edited September 30, 2022 by Rick Daylight 1 1 Link to comment Share on other sites More sharing options...
SatanTM Posted September 30, 2022 Author Share Posted September 30, 2022 1 hour ago, Fluffy Sharkfin said: It's probably not, but since you're here now... By a strange coincidence I just swapped back to 3D Coat after taking a "short" break to check the forums and found this deformed cone I'd been absent-mindedly playing with... it may even end up as a witch hat eventually if I don't get distracted by something shinier! I'd imagine there are plenty of witch hats available on the marketplace though, and if you can't specifically find one that floats then try to at least find one that's modifiable and you can perhaps drop a "floating script" in it. Thank you, I'll definitely look into the floating script. 1 Link to comment Share on other sites More sharing options...
Fluffy Sharkfin Posted September 30, 2022 Share Posted September 30, 2022 46 minutes ago, SatanTM said: Thank you, I'll definitely look into the floating script. Fortunately @Rick Daylightwas kind enough to post one for you so if you find a witch hat you can copy and paste his code into a script in SL and you're all set! Link to comment Share on other sites More sharing options...
Lindal Kidd Posted September 30, 2022 Share Posted September 30, 2022 I actually have a Sorting Hat! It's not the same one as mine, but there's a similar one on the Marketplace. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now