From e0a696d9df0d989d2e034331b8dee6bfc4be0f2e Mon Sep 17 00:00:00 2001 From: ghoulslash <41651341+ghoulslash@users.noreply.github.com> Date: Sat, 30 Jul 2022 06:39:27 -0600 Subject: [PATCH] Updated Useful Scripting Specials (markdown) --- Useful-Scripting-Specials.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Useful-Scripting-Specials.md b/Useful-Scripting-Specials.md index 77417fd..6310648 100644 --- a/Useful-Scripting-Specials.md +++ b/Useful-Scripting-Specials.md @@ -33,7 +33,7 @@ void GetObjectPosition(void) if (!useTemplate) { /* current position */ - const u16 objId = GetObjectEventIdByLocalIdIncludeInactive(localId); + const u16 objId = GetObjectEventIdByLocalId(localId); const struct ObjectEvent *objEvent = &gObjectEvents[objId]; *x = objEvent->currentCoords.x - 7; // subtract out camera size *y = objEvent->currentCoords.y - 7; @@ -52,4 +52,10 @@ void GetObjectPosition(void) 3. Finally, add our new special to the specials table in `data/specials.inc` -`def_special GetObjectPosition` \ No newline at end of file +`def_special GetObjectPosition` + +## 2. checkobjectat + +credits to ghoulslash + +Checks in any object is at a given position