![]() |
onCall Event
I was thinking that an object.onCall() event would allow you to define what happens when you call object() like a function. Obviously this would be a blocking event. I haven't yet decided what I could use it for but I thought it might be nice.
Edit: And some other things I mentioned before: A throwevent(objectname, eventname, params...) that throws an event that can be caught with catchevent() like it does with Gui Controls. onGetVariable() and onSetVariable() events that would allow you to define function behavior for certain variables. Obviously there would need to be some way to specify which variables are included in this. |
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
I also thought of something else I wanted to add but reading your post made me forget it. !pissed! |
Quote:
|
Quote:
|
The events for trigger() and normal GUI/player/catchevents are separate for security reasons. In the next Graal version it's however possible to trigger() events to yourself which act like normal GUI events. That is mainly for scripting new types of GUI controls, e.g. you can trigger("onSelect").
|
Quote:
And I hope this works serverside too? |
Server-side it's already working for a few months.
|
| All times are GMT +2. The time now is 02:19 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.