How to get reference to a trigger box - unreal-engine4

In a simple level I have a trigger box with event dispatcher that is called on event ActorBeginOverlap. I have in the same level a cube blue print and I want to assign the event dispatcher of the trigger box to the event BeginPlay of the cube so I tried like in the picture but it does not work so what is the correct way to do this ?

you need to set the object you want to cast to MyTriggerBox_Blueprint

You have to get which instance of that triggerBox you want, If you have 50 of them in a level, you have to specify which one you want to cast to. If you have only 1 of them in a level and you want to only talk to that one then use GetActorsOfAllClass then get( a copy) 0 of that array and plug it in as the object

Related

How do you set the size of an array that is exposed in Blueprint from within Blueprint?

Is there a way to expose an array of undetermined size to the blueprint editor so that the level/game designer can adjust the size of the array?
In my example, I want an array of gunshot sound effects.
In my header file I have this:
UPROPERTY(EditAnywhere)
USoundBase* MuzzleSound[5];
... but I don't know how to do it without having to already know the size.
Over in BP I want some way to be able to adjust the size to add even more if desired:
Is this possible?
You can use a TArray. TArrays are the default array the editor uses within blueprints.
UPROPERTY(BlueprintReadWrite, EditAnywhere)
TArray<USoundBase*> MuzzleSound;

Powerbuilder 7.0 - Pass value from an event to another event

i'm currently using Powerbuilder 7.0. So i got an object that need to modify 2 events. It is an inventory program, which will check if the item are below the level, it will pop out a message to show current available qty and reorder level qty.
So event stock_reorder_level are for displaying the message, and event stock_checking are for the checking of stock qty. Now i've done the message, but it shows 0 for available and reorder qty. The value for the qty are defined on event stock_checking, i wasn't sure how to pass the value of qty to the stock_reorder_level event. Below are some of the coding i've done.
event stock_reorder_level
event stock_checking
My question: how to pass dec_totPrdQty and dec_stockReorderLevel to event stock_reorder_level.
You need to:
Add adec_prdqty and adec_reorderlevel as parameters to the event definition for stock_reorder_level instead of the two local variables.
pass the two values as arguments when you call stock_reorder_level. EX:
THIS.EVENT ue_reachStockReorderLevel(al_row, dec_totPrdQty, dec_stockReorderLevel)
You toggle the event definition in PowerBuilder's script painter with the button "Show/Hide Prototype" located in the top right-hand corner.

Detect drop target with HammerJS

I'm using HammerJS to abstract drag, scale and rotate for desktop and mobile. All I'm missing is drop. How do I define an element as a drop target that throws an event when another element is dragged over or dropped onto it? Something like jQueryUI's droppable that will work with HammerJS?
Thanks.
Just solved that today.
On dropping object, set a global "look for me" flag. and then setTimeout() to shortly (say 30ms) set it back to false.
Hide (and move) the dropped object, putting it back after a short time allowing the onMouseOver and onMouseOut events to trigger on the drop target object.
Watch those events for the "look for me" flag.
I haven't really tried it much yet.
(My first post.)
The only one fast way for detect drop target element is to use
document.elementFromPoint
Like this:
function dragEnd($event){
var targetEl = document.elementFromPoint($event.gesture.center.pageX, $event.gesture.center.pageX);
your code
}

Hide cursor or have custom cursor in Windows 8 Metro

I want to know if there is a way to hide cursor in Windows 8 Metro mode. I found
this answer, but then I don't know how to obtain the
"unique resource id" for the second parameter of the cursor constructor (below).
Window.Current.CoreWindow.PointerCursor =
new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Custom, 1);
EDIT: Forgot to mention that I need to handle mouse events normally so the answer below of setting cursor to null will not suffice.
Set the cursor to a custom cursor but make it just be blank...this allows you to track it like being a normal cursor.
You can set the PointerCursor object to NULL. As soon as you move over something like a text box, it will reset it back though. So you probably need to handle mouse over events on various controls, to hide it. This all depends on your complete scenario tough.
Also, before setting it to NULL, you can save the value of the property (PointerCursor) and then when you're done, set it back.

DataGridViewComboBoxCell selectioindexchange event

I have a data-grid and three column in it. one column is type of DataGridViewComboBoxCell, three items are in this grid combo box, now i have to invoke selection index changed event to change value according to combo value change in grid.
also help me to make a new event ....
please help...
thanks
I really can't understand your question.
But maybe these informations can help:
A ComboBoxColumn has always two kinds of controls. A presenting one (in most cases a label) which is individually for each row. And a editing one that will be shared for the whole column. So take a look into this documentation and the IDataGridViewEditingControl Interface.
Maybe these will give you a starting point on how to solve your problem.
In the Load event for the form, you need to get the cell that you want to add the handler to and cast it as a regular combo box. You can then add the event handler on SelectedIndexChanged, but it must be done programmatically, and depending on the language you are using.