Difference between revisions of "Talk:Enable - ObjectReference"
Jump to navigation
Jump to search
m
→Parentheses Must Be Left Blank
imported>HawkFest |
imported>HawkFest |
||
Line 47: | Line 47: | ||
:Step 2- Choose a static object with collision that can get hit by the player with any weapons (or hand-to-hand) : a dummy target, a box, a wall, whatever. Then attach the following script to it (an alternative would be to use an activator such as a button or a lever, and code the OnActivate event, instead of the OnHit event as is the case below - which would also allow you to add controls to their gamebryo animations within the same code structure if need be): | :Step 2- Choose a static object with collision that can get hit by the player with any weapons (or hand-to-hand) : a dummy target, a box, a wall, whatever. Then attach the following script to it (an alternative would be to use an activator such as a button or a lever, and code the OnActivate event, instead of the OnHit event as is the case below - which would also allow you to add controls to their gamebryo animations within the same code structure if need be): | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Scriptname | Scriptname SimpleLightBulbCollisionSwitchScript extends ObjectReference | ||
ObjectReference Property LightBulbRef Auto | ObjectReference Property LightBulbRef Auto | ||