Skip to content

Commit cf5a70d

Browse files
author
rdeioris
authored
Update Subclassing_API.md
1 parent c9b4631 commit cf5a70d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/Subclassing_API.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,19 @@ class ExplodeTrigger(TriggerBox):
168168
WorldDestroyedByDaemons.event = True
169169
```
170170

171+
You can make your events networkedm using the 'multicast', 'server', 'client' and 'reliable' attributes:
172+
173+
```py
174+
class ExplodeTrigger(TriggerBox):
175+
176+
# this event will be run on the server and in reliable mode
177+
def WorldDestroyedByDaemons(self):
178+
ue.log_warning('WORLD DESTROYED')
179+
WorldDestroyedByDaemons.event = True
180+
WorldDestroyedByDaemons.server = True
181+
WorldDestroyedByDaemons.reliable = True
182+
```
183+
171184

172185
Reloading
173186
---------

0 commit comments

Comments
 (0)