• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - IDE Undo overide parent event

YoKoNo

Member
Hi

So I have a parent obj which I have a child from, In the child events I accidentally created a new event which overwrites the parents events. I know I can use the function event_inherited(); in the code editor, but is there a way I can just undo the action? ctrl-z has no effect.

Thanks

Paul
 

rIKmAN

Member
Hi

So I have a parent obj which I have a child from, In the child events I accidentally created a new event which overwrites the parents events. I know I can use the function event_inherited(); in the code editor, but is there a way I can just undo the action? ctrl-z has no effect.

Thanks

Paul
Just delete the event in the child.
 

rIKmAN

Member
so it wont appear as greyed out but will still be pulled from the parent?
Once you delete the event in the child you should see the same event greyed out which signifies that it exists in the parent (and will be run unless otherwise specified).

In the image below the Key Press event doesn't exist on the child object and so will be called in the parent object, the rest will be called on the child object unless event_inherited() is specifically called.

 
Top