get_original_thread
Returns the waiting caller thread from inside an oth hook.
Syntax
get_original_thread() -> thread?
Also available as
oth.get_original_thread
Returns
| Type | Description |
|---|---|
thread? | Original waiting caller, or nil outside the hook. |
Description
Outside that hook context it returns nil. The caller is owned by the game scheduler; this function is not permission to resume or terminate it manually. Use gettenv or supported debug inspection to examine its context.
Example
print(get_original_thread())
These are Game executor contracts. Check build requirements and session lifetimes before using them.
