Difference between revisions of "0x0000"

From SimsWiki
Jump to: navigation, search
 
(Fix. Please look before you type)
Line 1: Line 1:
Simplest BHAV of any kind there is. Does absolutely nothing, ignores all it's opcodes, and always returns true. If these appear in maxis BHAVs, it probably means they had a line of code there they didn't need, so instead of deleting it and having to reassign the true and false targets of other stuff, just called the sleep function, and left it.
+
=Sleep (0x0000)=
 +
Simplest BHAV of any kind there is.
  
That's about the only way you'd ever need it, either. Occasionally it's useful to just add a whole bunch of these into a BHAV you're going to really <strike>Mess up</strike> Modify, and then make your changes one at a time. Then if something goes wrong, you can make the line into a sleep, until you figure out what went wrong, and can go back later and re-point it, without having to add a new one and fill in all the opcodes.
+
==Overview==
 +
It takes it's input from the calling bhav's parameters, choosable using the first two op-code bits. 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==
 +
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 (0x0180)
 +
*Idle - Minutes (0x016F)
 +
*Idle - Hours (0x016E)
 +
 
 +
=See also=
 +
*[[SimAntics]]
 +
 
 +
[[Category:Modding]]

Revision as of 05:54, 20 June 2006

Contents

Sleep (0x0000)

Simplest BHAV of any kind there is.

Overview

It takes it's input from the calling bhav's parameters, choosable using the first two op-code bits. 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

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 (0x0180)
  • Idle - Minutes (0x016F)
  • Idle - Hours (0x016E)

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox