Aller au contenu

Photo

making creature dissapear on click event (solved)


2 réponses à ce sujet

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
i tried putting EVENT_TYPE_CLICK in a creature script and then using safe_destroy_object on the creature inside the case brackets of the event but that didn't work. before anyone mentions it i have considered using dialog but i'd rather not since the process is smoother if the player simply clicks the creature.

Modifié par gordonbrown82, 28 mai 2010 - 06:02 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
Use the dialog event, but don't start a conversation. When the player clicks on the body, the PC will walk up. When it gets close, a dialog event will fire. If you prevent that event from falling through to creature core and do your inventory scripting there, you should get roughly what you want. The only major problem I can see is that the mouse over icon will be a dialog one rather than a loot one. If you want to fix that, you could make the body non-interactive, and surround it with an invisible container and put the scripting in the use event of that.

#3
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
What function are you using to remove the armor/change the appearance of the creature? Perhaps I could suggest some alternatives that might not cause him to stand up.