OBD:BINA/OBJC/CONS: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 41: Line 41:
{{OBDtr2|0x0A6 | char[63] |E7CEA5| _con_INFO              | "console activated" texture name (reference to 00800-_CON_INFO.[[OBD:TXMP|TXMP]] of level 0) }}
{{OBDtr2|0x0A6 | char[63] |E7CEA5| _con_INFO              | "console activated" texture name (reference to 00800-_CON_INFO.[[OBD:TXMP|TXMP]] of level 0) }}
{{OBDtr2|0x0E5 | char[63] |FFDDDD| _con_INFO              | "console used" texture name (reference to 00800-_CON_INFO.[[OBD:TXMP|TXMP]] of level 0) }}
{{OBDtr2|0x0E5 | char[63] |FFDDDD| _con_INFO              | "console used" texture name (reference to 00800-_CON_INFO.[[OBD:TXMP|TXMP]] of level 0) }}
{{OBDtr |0x124 | int16    |64AAAA| 01 00      | 1        | amount of console events }}
{{OBDtr |0x124 | int16    |64AAAA| 01 00      | 1        | number of events }}
{{OBDtrBK|1=First event (grey outline)}}
{{OBDtrBK|1=First event (grey outline)}}
{{OBDtr |0x126 | int16    |EBEBEB| 01 00      | 1        | console event type; the following types are possible (values in dec):
{{OBDtr |0x126 | int16    |EBEBEB| 01 00      | 1        | event type; the following types are possible (values in dec):
 
 
:00 - nothing
:00 - nothing
:01 - script function (32 byte string)
:01 - script function (32 byte string)
Line 58: Line 56:
:10 - lock door (short)
:10 - lock door (short)
:11 - unlock door (short)
:11 - unlock door (short)
}}
}}
{{OBDtr2|0x128 | char[32] |8C8CCC| level3c                | console event parameter (see below); here, string to be fed to the script engine }}
{{OBDtr2|0x128 | char[32] |8C8CCC| level3c                | event parameter; here, the name of the script function to be called when the console is used }}
|}
|}
;Console events
:If necessary (i.e., if there are no events, of if there is an even number of script events),
::the CONS object is completed to a 4-byte multiple size by means of another (null) '''short'''.




708

edits