Difference between revisions of "GetNumRefsInCell"
Jump to navigation
Jump to search
Added a temporary note
imported>Syscrusher (Added some information found in my own testing of this function.) |
imported>QQuix (Added a temporary note) |
||
Line 27: | Line 27: | ||
This function is dynamic and indicates how many references of that type are in the cell currently, not necessarily how many were placed there in the Construction Set. This is particularly important (and useful) in counting the number of Actors (or Creatures or NPCs) in the cell. In the case of Actors, the player does not count against the total. | This function is dynamic and indicates how many references of that type are in the cell currently, not necessarily how many were placed there in the Construction Set. This is particularly important (and useful) in counting the number of Actors (or Creatures or NPCs) in the cell. In the case of Actors, the player does not count against the total. | ||
==== Temporary note ==== | |||
*As of OBSE 21 (March 2015), the compiler gives you an error if you use this function with [[LET]] ''("let n := GetNumRefsInCell MyActorsCell 35")''. Using [[SET]] is fine ''("Set n to GetNumRefsInCell MyActorsCell 35")''. If you have the latest version of OBSE and do not experience this problem, please remove this note, as it means the problem has been fixed. | |||
{{OBSE Form Type Codes}} | {{OBSE Form Type Codes}} |