Hi All,
I would like to learn how to make a box explode when the cursor is on it and when keypress (E) occurs.
Looking at the screenie below, the cursor is on a box.
When I press E, I want the box to explode (hidden) and be replaced by an explosion mesh.
I figure that’s a good way to learn triggers.
Eventually I would like the cursor to change to a hand when the box has a mouseover activated, but that is for another day I guess.
Thanks in Advance,
I would like to learn how to make a
box explode when the cursor is on it
and when keypress (E) occurs. Looking
at the screenie below, the cursor is
on a box.
Search for Line Tracing tutorials on YT, this is a common topic that has been widely discussed; on official UE channels, too.
When I press E, I want the box to
explode (hidden) and be replaced by an
explosion mesh. I figure that’s a good
way to learn triggers.
Again, Destructible Mesh tutorials to get the hang of how destructibles work. In short: press E, line trace, see what you hit, exchange meshes, apply damage to mesh to explode it.
Eventually I would like the cursor to
change to a hand when the box has a
mouseover activated, but that is for
another day I guess.
Yet again, this has been done too many times. I believe you mean the crosshair, not the cursor (mouse pointer) - use that as a keyword when searching. In your pic, there is a red crosshair - it’s quite different from a mouse cursor and would require a different approach.
If you did mean the mouse cursor, then looking into interface interaction might be what you’re after - I feel you’ll want more than just change the cursor, you’ll want to evoke an action of sort depending on what the mouse hovers over. Hard to tell at this point.