Jump to content

How do I make hudmessage appear after monster death?


pRoJect45yt

Recommended Posts

*I figured out my issue*

 

title is pretty self explanatory: I need to know how to make HudMessage appear on the screen after a monster is killed. Only problem is, I'm using a Map Spot and script execute will not work. Any work arounds for this? Maybe some code that makes it appear? Help!1841609923_Screenshot2024-02-20233201.png.1bb976c43ae722dbba91226881c59a6e.png

Screenshot 2024-02-20 233144.png

Edited by pRoJect45yt

Share this post


Link to post


Obviously you cannot use the editor to assign a script execution (or indeed any action) to a monster that you didn't use the editor to place, but there are functions that allow an action to be assigned to a monster during gameplay.

Assuming I've understood your problem, that should be enough information for you to find the answer you're looking for.

Edited by jerrysheppy

Share this post


Link to post

You can tie the execution to a monster directly by giving the Script Execute action to that monster. That way, the HUD message will be printed when it dies.

 

If the monster in question is one that you spawn later on in the map, first give it a tag in its spawning function and then use SetThingSpecial to give it the Script Execute action.

Share this post


Link to post
8 hours ago, MFG38 said:

You can tie the execution to a monster directly by giving the Script Execute action to that monster. That way, the HUD message will be printed when it dies.

 

If the monster in question is one that you spawn later on in the map, first give it a tag in its spawning function and then use SetThingSpecial to give it the Script Execute action.

In addition to this, I would suggest to add a little delay (35 usually works well enough).

 

The reason to do this is that the script will trigger as soon as the target's health reaches 0, but at this point, it is still likely performing a death animation. The delay helps to harmonize the effect and have the script run when the actor lies on the ground dead.

Share this post


Link to post
8 hours ago, Oxyde said:

In addition to this, I would suggest to add a little delay (35 usually works well enough).

 

The reason to do this is that the script will trigger as soon as the target's health reaches 0, but at this point, it is still likely performing a death animation. The delay helps to harmonize the effect and have the script run when the actor lies on the ground dead.

I've tried manually setting up the script to execute in the Thing Tag area in the menu, but it doesnt execute once the imp has been killed. Am I missing something?

 

Using the SetThingSpecial action, I figured out my predicament! Thanks for the help :)

Edited by pRoJect45yt

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...