Skip to content

Commit 18973ea

Browse files
author
rdeioris
authored
Update Subclassing_API.md
1 parent 30491c8 commit 18973ea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/Subclassing_API.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ class Hero(Character):
158158
FunnyNewMethod.is_static = True
159159
```
160160

161+
Events can be easily exposed like this:
162+
163+
```py
164+
class ExplodeTrigger(TriggerBox):
165+
166+
def WorldDestroyedByDaemons(self):
167+
ue.log_warning('WORLD DESTROYED')
168+
WorldDestroyedByDaemons.event = True
169+
```
170+
161171

162172
Reloading
163173
---------

0 commit comments

Comments
 (0)