mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Clarify Lua API for SetOnCollidedWithObject()
This commit is contained in:
parent
0638756d90
commit
f7a22ea1a7
1 changed files with 3 additions and 0 deletions
|
@ -428,6 +428,9 @@ ScriptReserved_GetSlotHP, & Moveable::GetSlotHP,
|
|||
// @function Moveable:SetOnCollidedWithObject
|
||||
// @tparam function func callback function to be called (must be in LevelFuncs hierarchy). This function can take two arguments; these will store the two @{Moveable}s taking part in the collision.
|
||||
// @usage
|
||||
// -- obj1 is the collision moveable
|
||||
// -- obj2 is the collider moveable
|
||||
//
|
||||
// LevelFuncs.objCollided = function(obj1, obj2)
|
||||
// print(obj1:GetName() .. " collided with " .. obj2:GetName())
|
||||
// end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue