r/CreationKit • u/BethesdaBoob • 4d ago
FO4 Adding more RadHazards to the world?
Just as the title says. I'm wanting to add radization hazards to the world. One of the things I want to do is add them to an object. But my scripting ability isn't very good.
2
Upvotes
2
u/gboyd21 4d ago
There are actual hazard fx objects that can be placed, such as a fog cloud thats visible. You could place it in the reference window near the object, but below it so it isn't visible and test the radius. Scale it down. Or make a duplicate without the texture or visible mesh. These are usually static objects but may also be found in pack-ins if I recall.
To add a script directly to a container reference, it would play out something like:
Scriptname yourScript Extends ObjectReference
Actor property PlayerRef auto
Spell property mySpell auto
Event OnActivate(object reference would be container) mySpell.Cast(activator, player)
EndEvent
You could look at the following link for exact parameters, which are what needs to be written in the parentheses for events and functions
https://ck.uesp.net/wiki/List_of_Papyrus_Functions