Skip to content

Commit

Permalink
Update standards_lua.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyres committed Jan 7, 2024
1 parent 66292e1 commit 916221b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion _docs/standards_scripts/standards_lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,24 @@ Information About the typical function names:

### [Register Events and Server Hooks](/Wiki/docs/standards_scripts/methods_lua/List_of_all_Events)

### [GameObject Methods](/Wiki/docs/standards_scripts/methods_lua/GameObject_Methods)
### GameObject Methods

GET | Description | Usage
------------------------------------------------------------------------------------------------------------|----------|-----------
[GetEntry()](/Wiki/docs/standards_scripts/methods_lua/GameObject_Methods/Lua_GetEntry) | Returns the entry ID |
GetHP() | Returns the actual HP |
GetMaxHP() | Returns the maximum HP |
[GetName()](/Wiki/docs/standards_scripts/methods_lua/GameObject_Methods/Lua_GetName) | Get the name |
GetObjectType() | Returns 'GameObject' |
[GetSpawnLocation()](/Wiki/docs/standards_scripts/methods_lua/GameObject_Methods/Lua_GetSpawnLocation) | Get the Location of a spawned unit |

UNCATEGORIZED | Description | Usage
------------------------------------------------------------------------------------------------------------|----------|-----------
Activate() | Activates/Deactivate a go, f.ex. opens a door |
Damage(damage, guid, spellid) | Damages the GO if it's a destructible building, guid is the damaging Unit's GUID, spellid is the damaging spell. |
Rebuild() | Rebuilds the GO, if it's a destructible building. Restores it's hp to max, and restores it's displayid to normal. |
[RemoveFromWorld()](/Wiki/docs/standards_scripts/methods_lua/GameObject_Methods/Lua_RemoveFromWorld) | Removes the Game Object from the world. |


### [Unit Methods](/Wiki/docs/standards_scripts/methods_lua/Unit_Methods)

Expand Down

1 comment on commit 916221b

@schnek
Copy link
Contributor

@schnek schnek commented on 916221b Jan 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look so nice 😅

Please sign in to comment.