ReworldDevs / ReworldScripts

Alpha phase Lua scripting for Reworld games
0 stars 0 forks source link

EventObject #7

Open ReworldDevs opened 5 years ago

ReworldDevs commented 5 years ago

The documentation isn't very clear on how EventObjects are used. In a script from the Chinese team, an EventObject is used to receive some kind of Server Event message:

local DownEvent = script.Parent.EventObject

DownEvent.ServerEventCallBack:Connect(CarControl.DownEvent)

However, we are not sure why this works, as the documentation on EventObjects is not very clear.