Difference between revisions of "GetPlayingBlob"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns a reference to the CBlob with the given index in the list of blobs that represent currently active (i.e. spawned, not dead) players. </onlyinclude> <syn...")
(No difference)

Revision as of 20:59, 14 August 2012

Returns a reference to the CBlob with the given index in the list of blobs that represent currently active (i.e. spawned, not dead) players.

[[CBlob]]@ getPlayingBlob(u32 index)

Similar to getBlob, but because this is only for currently active players, this can be useful for doing things to each player. Something like the following might therefore be useful:

for ( int i = 0; i < [[getPlayingBlobsSize]](); i++ )
{
  [[CBlob]]@ blob = getPlayingBlob(i);
  // Do something to this player
}