StoreToAddress

Last Updated2021-07-10
Created At2010-01-12

Store up to 4 bytes to a memory address.

native void StoreToAddress(Address addr, any data, NumberType size, bool updateMemAccess = true)

Parameters

Address addr
Address to a memory location.
any data
Value to store at the address.
How many bytes should be written. If storing a floating-point value, use NumberType_Int32.
bool updateMemAccess
If true, SourceMod will set read / write / exec permissions on the memory page being written to.

Return Value

void

Error

Address is null or pointing to reserved memory.