|
event_perform_object(obj,type,num); |
|
obj = object that is applied to the CURRENT instance. type = One of 11 events that you can see in the window that pops up if you click on "Add Event" in an object. numb = One of those events that is listed under each single "type".
Example:
This functions works the same as event_perform(type,num), the difference is that it is an event in ANOTHER object that is applied to the CURRENT instance.
Example: Say we have two objects obj_enemy and obj_player, in an event in object player there is this code:
Executing that code in obj_player will execute whatever exists in the keyboard event for "Space" in obj_enemy. So if the "Space" keyboard event in obj_enemy is instance_destroy(), then obj_player will get destroyed.
Weird Dragon - Revision #1 |