Click or drag to resize

ASLHelperSendSpawnPrimitive Method

Sends a packet out to all players to spawn an object based upon a prefab

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
private static void SendSpawnPrimitive(
	PrimitiveType _type,
	Vector3 _position,
	Quaternion _rotation,
	string _parentID = "",
	string _componentAssemblyQualifiedName = "",
	string _instantiatedGameObjectClassName = "",
	string _instantiatedGameObjectFunctionName = "",
	string _claimRecoveryClassName = "",
	string _claimRecoveryFunctionName = "",
	string _sendFloatClassName = "",
	string _sendFloatFunctionName = ""
)

Parameters

_type
Type: PrimitiveType
The type of primitive to be spawned
_position
Type: Vector3
The position of where the object will be spawned
_rotation
Type: Quaternion
The rotation orientation of the object upon spawn
_parentID (Optional)
Type: SystemString
The id of the parent object
_componentAssemblyQualifiedName (Optional)
Type: SystemString
The full name of the component to be added to this object upon creation.
_instantiatedGameObjectClassName (Optional)
Type: SystemString
The name of the class that contains the user provided function detailing what to do with this object after creation
_instantiatedGameObjectFunctionName (Optional)
Type: SystemString
The name of the user provided function that contains the details of what to do with this object after creation
_claimRecoveryClassName (Optional)
Type: SystemString
The name of the class that contains the user provided function detailing what to do if a claim for this object is rejected
_claimRecoveryFunctionName (Optional)
Type: SystemString
The name of the user provided function that contains the details of what to do with this object if a claim for it is rejected
_sendFloatClassName (Optional)
Type: SystemString
The name of the class that contains the user provided function detailing what to do when a user calls [!:ASLObject.SendFloatArray(float[])]
_sendFloatFunctionName (Optional)
Type: SystemString
The name of the user provided function that contains the details of what to do with this object if a user calls [!:ASLObject.SendFloatArray(float[])]
See Also