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);
The first 3 will go into the SetUserVariables just fine, but the Vector3 won't. I have also tried to break up the Vector3 as string but I was not allowed to convert Vector3 to a String such as:
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!