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