Spawn Object
Battlefield 6 Scripting Docs / mod / mod / SpawnObject
function SpawnObject(
prefabEnum,
position,
rotation,
scale): any;
Defined in: mod/index.d.ts:21607
Spawns an object at runtime. Returns an object id if the object supports it, otherwise -1
| Parameter | Type |
|---|---|
prefabEnum |
| RuntimeSpawn_Common | RuntimeSpawn_Granite_ResidentialNorth | RuntimeSpawn_Abbasid | RuntimeSpawn_Aftermath | RuntimeSpawn_Badlands | RuntimeSpawn_Battery | RuntimeSpawn_Capstone | RuntimeSpawn_Dumbo | RuntimeSpawn_Eastwood | RuntimeSpawn_FireStorm | RuntimeSpawn_Limestone | RuntimeSpawn_Outskirts | RuntimeSpawn_Tungsten | RuntimeSpawn_Granite_Downtown | RuntimeSpawn_Granite_Marina | RuntimeSpawn_Granite_TechCenter | RuntimeSpawn_Sand |
position |
Vector |
rotation |
Vector |
scale |
Vector |
any
function SpawnObject(
prefabEnum,
position,
rotation): any;
Defined in: mod/index.d.ts:21632
Spawns an object at runtime. Returns an object id if the object supports it, otherwise -1
any