SplitScript reference / Native
Native
state provider
state Native
Attaches to one of the native processes named by the state declaration.
Each candidate is an exact host process identity. The current Windows host reports executable filenames including .exe, so Windows candidates must include that extension. Use an array for alternate executable names; the provider tries them in order and attaches to one matching process.
The read-only value has type Process and is a handle to the attached game process.
Examples
Read native process memory
state "game.exe" {}
whileAttached {
let health = process.read<i32>(0x1234) else 0
}
Try alternate executable names
state ["game.exe", "game-demo.exe"] {}
onAttach {
print(process.name())
}
Value type
| Member | Description | Available through |
|---|---|---|
| Process | Accesses the attached game process. |