# SetNetworkLocalFloat

## Description

Sets a local float variable for this client by name. Other clients can then read this variable by using the same name when requesting its value. The mode parameter specifies how this variable should behave, with a value of 1 meaning that this variable will reset to 0 when read. For example if you wanted to send a click notification you could set a value of 1 to signify a click with a mode value of 1. When each client reads the variable, each will see the value 1, but if they try to read it again they will get the value 0. Each client only resets its own copy of the variable. A mode value of 0 means it is a normal variable that will not change when read.
If the variable with that name does not exist it is created. Once a variable is created in normal or resetting mode it cannot be changed and the mode parameter is ignored.

## Definition

SetNetworkLocalFloat( iNetID, name, f, mode )

void agk::SetNetworkLocalFloat( UINT iNetID, const char *name, float f, int mode )

SetNetworkLocalFloat( iNetID, name, f )

void agk::SetNetworkLocalFloat( UINT iNetID, const char *name, float f )

## Parameters

- iNetID - The ID of the network to check.
- name - The name of this variable.
- f - The value to set this variable to.
- mode - The type of this variable, 0=normal, 1=resetting