dreamsofcats Posted February 22, 2016 Share Posted February 22, 2016 (edited) Hello I've been trying to write a simple script to allow a player to remove a blood stain, and can't get it to work. Simply put, the player clicks on the stain, or a cubic activator surrounding it, and the stain disables/disappears. Sounds simple, yet it doesn't function as intended. Here's the script I've tried so far, attached to a cubic activator: scn BloodSCRIPT begin onactivate Blood01REF.disable endifend I've considered using a cubic activator to prompt a message box, asking the player if they wish to remove the blood stain, then firing off a script, but that seems a bit cumbersome. I'd like to put these stains on the walls, floors, etc, and would prefer that the player interact with them by clicking. I'd appreciate any help. I'm fairly certain that the answer is stupidly simple, but I'm not grokking it. Thanks in advance. 02/22/16 Update Seems like what I'm attempting won't work, as the cubic activator doesn't have collision. My only option is to turn the bloodstains into a static element, so that they can accept an attached script. More experimentation in my future, I guess. Edited February 22, 2016 by dreamsofcats Link to comment Share on other sites More sharing options...
ElfyPers0n Posted February 26, 2016 Share Posted February 26, 2016 Look at some modder's resources, like Speedy's. Some of them have invisible objects with collision meshes that might work. If not, look up a tutorial on how to add a collision mesh to an existing mesh, and do that for the bloodstain. Link to comment Share on other sites More sharing options...
Jokerine Posted February 27, 2016 Share Posted February 27, 2016 (edited) Some time ago I gave collision to one of the NV posters for a friend. You can download a version with a square UV map here and give it some custom bloodstain textures. There are plenty of free ones around the internet if you search. As for the script, you can use this script to disable and remove objects on activation cleanly and safely. Good thing about this script is that you can assign it to anything you want the player to click away, instead of having to make a bunch of different scripts for each stain or whatever. scn DisableOnActivationScript Begin OnActivate If IsActionRef Player disable MarkForDelete EndIf End Good luck with your project :smile: Edited February 27, 2016 by Jokerine Link to comment Share on other sites More sharing options...
Recommended Posts