Click or drag to resize
IMyPrefabManagerSpawnPrefab Method (ListIMyCubeGrid, String, Vector3D, Vector3, Vector3, Vector3, Vector3, String, SpawningOptions, Int64, Boolean)

[This is preliminary documentation and is subject to change.]

[Missing <summary> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
void SpawnPrefab(
	List<IMyCubeGrid> resultList,
	string prefabName,
	Vector3D position,
	Vector3 forward,
	Vector3 up,
	Vector3 initialLinearVelocity = null,
	Vector3 initialAngularVelocity = null,
	string beaconName = null,
	SpawningOptions spawningOptions = SpawningOptions.None,
	long ownerId = 0,
	bool updateSync = false
)

Parameters

resultList
Type: System.Collections.GenericListIMyCubeGrid

[Missing <param name="resultList"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

prefabName
Type: SystemString

[Missing <param name="prefabName"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

position
Type: Vector3D

[Missing <param name="position"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

forward
Type: VRageMathVector3

[Missing <param name="forward"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

up
Type: VRageMathVector3

[Missing <param name="up"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

initialLinearVelocity (Optional)
Type: VRageMathVector3

[Missing <param name="initialLinearVelocity"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

initialAngularVelocity (Optional)
Type: VRageMathVector3

[Missing <param name="initialAngularVelocity"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

beaconName (Optional)
Type: SystemString

[Missing <param name="beaconName"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

spawningOptions (Optional)
Type: VRage.Game.ModAPISpawningOptions

[Missing <param name="spawningOptions"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

ownerId (Optional)
Type: SystemInt64

[Missing <param name="ownerId"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

updateSync (Optional)
Type: SystemBoolean

[Missing <param name="updateSync"/> documentation for "M:VRage.Game.ModAPI.IMyPrefabManager.SpawnPrefab(System.Collections.Generic.List{VRage.Game.ModAPI.IMyCubeGrid},System.String,VRageMath.Vector3D,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,VRageMath.Vector3,System.String,VRage.Game.ModAPI.SpawningOptions,System.Int64,System.Boolean)"]

See Also