====== Callbacks (Reference(Auto exported)) ======
Callbacks (Reference(Auto exported))
===== update =====
Called every frame in the client of user who spawned of the item.
function update()
end
=== Arguments ===
===== onUse =====
[Requires ownership of SubItem] Called when the grip button is pressed while being grabbed.
function onUse(use)
end
=== Arguments ===
== use(string) ==
Name of the SubItem being used
===== onTriggerEnter =====
[Requires ownership of SubItem]Called when a Collider (Trigger) collides with the item.
function onTriggerEnter(item, hit)
end
=== Arguments ===
== item(string) ==
Name of the SubItem
== hit(string) ==
The name of the Collider
===== onTriggerExit =====
[Requires ownership of SubItem]Called when a Collider (Trigger) disengages from the item.
function onTriggerExit(item, hit)
end
=== Arguments ===
== item(string) ==
Name of the SubItem
== hit(string) ==
The name of the Collider
===== onCollisionEnter =====
[Requires ownership of SubItem]Called when a Collider (not Trigger) collides with the item.
function onCollisionEnter(item, hit)
end
=== Arguments ===
== item(string) ==
Name of the SubItem
== hit(string) ==
The name of the Collider
===== onCollisionExit =====
[Requires ownership of SubItem]Called when a Collider (not Trigger) disengages from the item.
function onCollisionExit(item, hit)
end
=== Arguments ===
== item(string) ==
Name of the SubItem
== hit(string) ==
The name of the Collider
===== onGrab =====
[Requires ownership of SubItem]Called when the item is Grabbed.
function onGrab(target)
end
=== Arguments ===
== target(string) ==
Name of the SubItem being grabbed
===== onUngrab =====
[Requires ownership of SubItem]Called when the item is Ungrabbed.
function onUngrab(target)
end
=== Arguments ===
== target(string) ==
Name of the SubItem being ungrabbed