GSC reference › Built-in
GetVehicleNodeArray()
Built-in (engine)
Server
Vehicle
Gets an array of vehicle nodes that have the given name, key pair
Signature
GetVehicleNodeArray(<name>, <key>)
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Required | (string) The name to search for |
| key | Required | (string) The key that name goes with |
Example (from Treyarch's docs)
nodes = GetVehicleNodeArray(self.target, "targetname")
Real uses in BO3's scripts
Called 8 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_spiders.gsc, line 1242
var_36eb5144 = getvehiclenodearray(ent.target, "targetname"); - scripts/zm/_zm_genesis_spiders.gsc, line 1278
var_36eb5144 = getvehiclenodearray(ent.target, "targetname"); - scripts/zm/zm_genesis_pap_quest.gsc, line 136
var_d1f5ed14 = getvehiclenodearray("pap_travel_spline", "targetname"); - scripts/cp/cp_mi_cairo_aquifer_utility.gsc, line 3538
start_node_group = getvehiclenodearray("restart_node_rear", "script_noteworthy"); - scripts/cp/cp_mi_zurich_coalescence_util.gsc, line 3017
s_spawn_manager.var_431a4b23 = getvehiclenodearray(s_spawn_manager.target, "targetname");
Related built-ins
- GetVehicleNode()Gets a vehicle node with the given name, key pair
- GetAllVehicleNodes()Gets all of the vehicle nodes in a level
- GetVehicleAvoidanceNodes()Get the positions for nearby avoidance nodes.
- GetTimeFromVehicleNodeToNode()The time it would take to go from start node to end node if traveling the spline speed.
- ReconnectVehicleNodes()Reconnect vehicle nodes
- GetNodeArray()Gets an array of nodes that have the given name, key pair
- GetVehicleArray()Returns an array of all of the vehicles in a level
- GetVehicleTeamArray()Returns an array of all of the vehicles in a level that are not sentients
- GetVehicleSpawnerArray()Returns an array of all of the vehicle spawners in a level
- GetNodeArraySorted()Gets an array of nodes that have the given name, key pair, within given radius, sorts them
- GetAnyNodeArray()Gets an array of nodes within given radius
- GetCoverNodeArray()Gets an array of cover nodes within given radius
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).