Click or drag to resize

ASLObject_LocallySetFloatCallback Method

This function will only update the local player, not all players. Sets the float callback function for this object.

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void _LocallySetFloatCallback(
	ASLObjectFloatCallback _yourFloatFunction
)

Parameters

_yourFloatFunction
Type: ASLASLObjectFloatCallback
The function that will be used to perform an action whenever a user sends a float
Examples
void Start()
{
    gameobject.GetComponent<ASL.ASLObject>()._LocallySetFloatCallback(UserDefinedFunction)
}
public void UserDefinedFunction(string _id, float[] f)
{
    //Update some value for all users based on f. 
    //Example:
    playerHealth = f[0]; //Where playerHealth is shown to kept track/shown to all users
}
See Also