Difference between revisions of "0x0000"
From SimsWiki
m |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | =Sleep | + | {{Primitive |
+ | |name=Sleep | ||
+ | |opcode=0x0000 | ||
+ | |expansion=The Sims 2 | ||
+ | }} | ||
+ | |||
Simplest primitive of any kind there is. | Simplest primitive of any kind there is. | ||
==Overview== | ==Overview== | ||
− | It takes it's input from the calling bhav's parameters, choosable using the first two op-code | + | It takes it's input from the calling bhav's parameters, choosable using the first two op-code bytes. Use of this primitive can cause the calling thread to sleep if it's input is greater than 0. Every number equals two sim seconds. So, if it recieves 0x1E (30), it will sleep one sim minute. |
==Use== | ==Use== | ||
This primitive should not be called directly, unless you know what you are doing. It uses the calling bhav's parameters for it's input, so it can be unpredictable. Its better to call one of the following globals: | This primitive should not be called directly, unless you know what you are doing. It uses the calling bhav's parameters for it's input, so it can be unpredictable. Its better to call one of the following globals: | ||
− | *Idle ( | + | *[[Idle]] (0x0118) |
*Idle - Minutes (0x016F) | *Idle - Minutes (0x016F) | ||
*Idle - Hours (0x016E) | *Idle - Hours (0x016E) | ||
− | =See also= | + | ==See also== |
+ | *[[Primitives]] | ||
*[[SimAntics]] | *[[SimAntics]] | ||
− | [[Category:Modding]] | + | [[Category:Sims 2 Modding]] |
+ | [[Category:Primitives|{{PAGENAME}}]] |
Latest revision as of 17:24, 17 September 2012
Sleep | ||
---|---|---|
OpCode: | 0x0000 | |
Game Version: | The Sims 2 |
Simplest primitive of any kind there is.
[edit] Overview
It takes it's input from the calling bhav's parameters, choosable using the first two op-code bytes. Use of this primitive can cause the calling thread to sleep if it's input is greater than 0. Every number equals two sim seconds. So, if it recieves 0x1E (30), it will sleep one sim minute.
[edit] Use
This primitive should not be called directly, unless you know what you are doing. It uses the calling bhav's parameters for it's input, so it can be unpredictable. Its better to call one of the following globals:
- Idle (0x0118)
- Idle - Minutes (0x016F)
- Idle - Hours (0x016E)