Jump to content

Mask bust giving and taking two masks


dankicity

Recommended Posts

I setup the labyrinthin mask busts and triggers in my mod. Then I extracted the snippet below from their original script and 'deleted' it ~ even though it never really deletes as it's an inherent script.

 

The issue is that the trigger is giving and taking two masks ~ since after you retrieve it once you have two of them. Which leads me to believe the original script is still being ran. Is there a way to get rid of this or is there something else I'm suppose to do?

 

"inherent script and deleted locally" ~ does this mean I can't delete it and it will always run?

 

 

Scriptname DTSMaskBustSCRIPT extends ObjectReference  
{Handling Script for Mask Busts}

armor property myMask auto
{Which mask am I made for?}
MusicType property FinalMaskRevealMusic auto

message property defaultLackTheItemMSG auto

bool placed = FALSE

EVENT onActivate(objectReference actronaut)
if placed == FALSE
	if actronaut.getItemCount(myMask) >= 1
		blockActivation()
		actronaut.removeItem(myMask, 1)
		placed = TRUE
		getLinkedRef().playAnimationandWait("on","TransOn")
		blockActivation(FALSE)
	else
		defaultLackTheItemMSG.show()
	endif
elseif placed == TRUE
	blockActivation()
	actronaut.addItem(myMask, 1)
	placed = FALSE
	getLinkedRef().playAnimationAndWait("off","TransOff")
	blockActivation(FALSE)
endif

endEVENT

Edited by dankicity
Link to comment
Share on other sites

  • Recently Browsing   0 members

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