misc_func
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
misc_func [2022/07/05 15:08] – [File] admin | misc_func [2025/02/25 22:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 838: | Line 838: | ||
|**Parameters: | |**Parameters: | ||
|scriptfilename | |scriptfilename | ||
+ | |||
+ | |} | ||
+ | |||
+ | ===== Maps ===== | ||
+ | {|style=" | ||
+ | |style=" | ||
+ | |- style=" | ||
+ | |**Syntax** | ||
+ | |style=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | < | ||
+ | # | ||
+ | mapInfo = Misc.GetMapInfo(0x400BFD6C) | ||
+ | print(" | ||
+ | .format(mapInfo.MapOrigin.X+mapInfo.PinPosition.X, | ||
+ | mapInfo.MapOrigin.X, | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | |- style=" | ||
+ | |**Note:** | ||
+ | |The pin position is an offset from the origin, so you have to add them to get absolute location | ||
+ | |||
+ | |- style=" | ||
+ | |**Returns** | ||
+ | |MapInfo{ PinPosition, | ||
+ | |- | ||
+ | |**In Object:** | ||
+ | |Misc | ||
+ | |- style=" | ||
+ | |**Parameters: | ||
+ | |serial - Serial of the t-map | ||
|} | |} |
misc_func.1657033684.txt.gz · Last modified: 2022/09/03 22:41 (external edit)