tovector

tovector(str: string) : vector

Creates a vector from a string argument in format <1,1,1>

Example

tovector('test')
{
  "def": "func",
  "name": "tovector",
  "energy": 0,
  "pure": true,
  "sleep": 0,
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "vector"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "str",
          "desc": "string to create vector from",
          "type": [
            "string"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ],
  "desc": "Creates a vector from a string argument in format <1,1,1>",
  "link": ""
}

< Back to SLua