1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 09:57:14 +01:00
SqMod/bin/demo/events/object.nut
Sandu Liviu Catalin 47325fa8c0 Begin working on a demo script.
Should be simple and easy to start with.
2019-08-13 21:14:20 +03:00

55 lines
2.4 KiB
Plaintext

/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectCreated
*/
SqCore.On().ObjectCreated.Connect(function(/*SqObject*/ object, /*int*/ header, /*object*/ payload) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectDestroyed
*/
SqCore.On().ObjectDestroyed.Connect(function(/*SqObject*/ object, /*int*/ header, /*object*/ payload) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectCustom
*/
SqCore.On().ObjectCustom.Connect(function(/*SqObject*/ object, /*int*/ header, /*object*/ payload) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectStream
*/
SqCore.On().ObjectStream.Connect(function(/*SqPlayer*/ client, /*SqObject*/ object, /*bool*/ is_deleted) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectShot
*/
SqCore.On().ObjectShot.Connect(function(/*SqObject*/ object, /*SqPlayer*/ player, /*int*/ weapon_id) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectTouched
*/
SqCore.On().ObjectTouched.Connect(function(/*SqObject*/ object, /*SqPlayer*/ player) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectWorld
*/
SqCore.On().ObjectWorld.Connect(function(/*SqObject*/ object, /*int*/ old_world, /*int*/ new_world) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectAlpha
*/
SqCore.On().ObjectAlpha.Connect(function(/*SqObject*/ object, /*int*/ old_alpha, /*int*/ new_alpha, /*int*/ time) {
});
/* --------------------------------------------------------------------------------------------------------------------
* Bind to global event: ObjectReport
*/
SqCore.On().ObjectReport.Connect(function(/*SqObject*/ object, /*bool*/ old_status, /*bool*/ new_status, /*bool*/ touched) {
});