Difference between revisions of "Checking if a Mod is affecting an Object"

no edit summary
imported>Cipscis
(Corrected information to relieve DragoonWraith's concern)
imported>Omzy
 
(3 intermediate revisions by 2 users not shown)
Line 19: Line 19:
   
   
  short sDoOnce
  short sDoOnce
ref rIsAffected
   
   
  Begin BlockName
  Begin BlockName
Line 28: Line 29:
  ; without preventing the OnLoad block from running
  ; without preventing the OnLoad block from running
  else
  else
  if ObjectRefID.rIsAffected == IsAffectedRef
  set rIsAffected to ObjectRefID.rIsAffected
if rIsAffected.GetIsReference IsAffectedRef
  ; Object has not been overridden
  ; Object has not been overridden
  else
  else
Line 43: Line 45:
== See Also ==
== See Also ==
*[[Running_an_OnLoad_block_on_a_disabled_item|Running an OnLoad block on a disabled item]]
*[[Running_an_OnLoad_block_on_a_disabled_item|Running an OnLoad block on a disabled item]]
[[Category:Solutions]]
 
[[Category:Modding_Practices]]
[[Category:Advanced_Modding_Techniques]]
Anonymous user