GSC reference › Built-in
GetCorpseArray()
Built-in (engine)
Server
Returns an array of all of the items in a level.
Signature
GetCorpseArray()
Returns
entity
Example (from Treyarch's docs)
origins = GetCorpseArray()
Real uses in BO3's scripts
Called 18 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_weap_black_hole_bomb.gsc, line 387
corpse_array = getcorpsearray(); - scripts/zm/zm_cosmodrome_lander.gsc, line 1386
corpses = getcorpsearray(); - scripts/zm/zm_moon_utility.gsc, line 573
corpses = getcorpsearray(); - scripts/zm/zm_temple_minecart.gsc, line 1435
corpses = getcorpsearray(); - scripts/zm/zm_temple_pack_a_punch.gsc, line 890
corpses = getcorpsearray();
Related built-ins
- array()Create an array
- GetEntArray()Looks up entities by key and name and a return an array of the matched entities
- IsArray()Checks whether this entity/variable is an array
- ArrayRemoveValue()Remove a value from an array (may affect multiple indexes)
- GetAITeamArray()Returns an array of the human AI and vehicle AI
- GetArrayKeys()Returns an array consisting of the keys of the input array.
- ArrayCombine()Combine two arrays into and returns one new array
- IsInArray()Searches an array to determine if a given value is present in that array
- ArrayGetClosest()Returns the entity/vector that is closest to the <origin> from the <array>.
- ArrayRemoveIndex()Remove a value from an array at a given index
- GetAIArray()Returns an array of the human AI
- ArrayCopy()Returns a copy of an array
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).