$80:825E

From ZAMN Hacking
Revision as of 16:08, 15 June 2024 by Piranhaplant (talk | contribs) (Created page with "{{Infobox ROM address|length=0x80|type=Code|name=createEntity|description=Creates an entity|args=Y+A = [pointer32] Entity pointer<br/>Return A = [uint16] Entity ID|ret_type=RTL}} Note: This will return 0 if there are no empty entity slots available. 0 is technically a valid entity ID, but this ID will always be used for the first player entity (see $80:8248). Category:ROM address")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
ROM address data
Length 0x80
Type Code
Name createEntity
Description Creates an entity
Arguments/Return value Y+A = [pointer32] Entity pointer
Return A = [uint16] Entity ID
Return type RTL

Note: This will return 0 if there are no empty entity slots available. 0 is technically a valid entity ID, but this ID will always be used for the first player entity (see $80:8248).