1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 07:15:36 +00:00

Lua Documentation clarification/fixes

This commit is contained in:
Zackhasacat 2023-08-11 21:16:32 +00:00 committed by Alexei Kotov
parent f1c3b42cfb
commit 8f303f46dc
3 changed files with 5 additions and 4 deletions

View file

@ -39,7 +39,8 @@ Engine handler is a function defined by a script, that can be called by the engi
* - onNewGame()
- New game is started.
* - onPlayerAdded(player)
- Player added to the game world. The argument is a `Game object`.
- | Player added to the game world. The argument is a `Game object`.
| Note that this is triggered at the start of a game, and when a game is loaded.
* - onObjectActive(object)
- Object becomes active.
* - onActorActive(actor)

View file

@ -306,7 +306,7 @@
-- end
---
-- Get all objects of given type from the cell.
-- Get all objects of given type from the cell; Only available from global scripts.
-- @function [parent=#Cell] getAll
-- @param self
-- @param type (optional) object type (see @{openmw.types#types})

View file

@ -23,7 +23,7 @@
-- @field [parent=#nearby] openmw.core#ObjectList doors
---
-- Everything in the nearby that is derived from @{openmw.types#Item}.
-- Everything nearby that is derived from @{openmw.types#Item}.
-- @field [parent=#nearby] openmw.core#ObjectList items
---
@ -49,7 +49,7 @@
-- @field [parent=#COLLISION_TYPE] #number Projectile
-- @field [parent=#COLLISION_TYPE] #number Water
-- @field [parent=#COLLISION_TYPE] #number Default Used by default: World+Door+Actor+HeightMap
-- @field [parent=#COLLISION_TYPE] #number AnyPhysical : World+Door+Actor+HeightMap+Projectile+Water
-- @field [parent=#COLLISION_TYPE] #number AnyPhysical World+Door+Actor+HeightMap+Projectile+Water
-- @field [parent=#COLLISION_TYPE] #number Camera Objects that should collide only with camera
-- @field [parent=#COLLISION_TYPE] #number VisualOnly Objects that were not intended to be part of the physics world