Jump to content

Need a Simple Script to disable a bloodstain.


dreamsofcats

Recommended Posts

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

endif

end

 

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 by dreamsofcats
Link to comment
Share on other sites

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 by Jokerine
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...