I am trying to add a Vector3 using the HashTable.Add, such as this:
Code: Select all
String ColorChoice;
String CharacterType;
String CharacterName;
Vector3 CharacterLocation;
client = GetClient();
Hashtable myHashtable = new Hashtable();
myHashtable.Add("ColorChoice", ColorChoice);
myHashtable.Add("CharacterType", CharacterType);
myHashtable.Add("CharacterName", CharacterName);
myHashtable.Add("Pos", CharacterLocation);
client.SetUserVariables(myHashtable);String xPos = (String)CharacterLocation.x;
or
String xPos = (String)CharacterLocation[0];
It's simple. I just need to store the player spawnpoint in the SetUserVariables. Anything I am over looking?
Thanks!