Modifié par gordonbrown82, 28 mai 2010 - 06:02 .
making creature dissapear on click event (solved)
Débuté par
gordonbrown82
, mai 27 2010 04:44
#1
Posté 27 mai 2010 - 04:44
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.
#2
Posté 27 mai 2010 - 06:01
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
Posté 28 mai 2010 - 03:58
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.





Retour en haut






