Code: Select all
NavPoint -set "Some World" "Some Label" ${Me.X} ${Me.Y} ${Me.Z}
Moderators: Lavish Software Team, Moderators
Code: Select all
NavPoint -set "Some World" "Some Label" ${Me.X} ${Me.Y} ${Me.Z}
Code: Select all
NavPoint -set "Some World" "Some Label" 1 2 3
Code: Select all
NavPoint -set "Some World" "Some Label" 1 2
NavPoint -set "Some World" "Some Label" 1
NavPoint -set "Some World" "Some Label" 1 2 3 4
Code: Select all
; Test Script
function main()
{
Navigation -reset
Navigation -load TestFile.xml
declare tempvar1 string local "Some World"
declare tempvar2 string local "Some Label"
NavPoint -set ${tempvar1} ${tempvar2} ${Me.X} ${Me.Y} ${Me.Z}
Navigation -dump TestFile.xml
}
Code: Select all
<?xml version='1.0'?>
<Navigation>
<World Name="Some">
<Point Name="World">
<X>0.000000</X>
<Y>0.000000</Y>
<Z>84.480003</Z>
</Point>
</World>
</Navigation>
Code: Select all
Some World
Code: Select all
Some Label
Code: Select all
NavPoint -set Some World Some Label 1.234 2.345 3.456
Here is what your NavPoint should be:Parameters are words separated by spaces. If an individual parameter must itself include a space, or certain special characters should not be interpreted as part of a complex command, double quotes (") should be used around the parameter. Data are valid in any parameter, and will be processed (potentially becoming multiple parameters) unless the command name indicates a command that instructs otherwise (in which case the data will be treated as a single word). If data are processed, they will be replaced with the "return" (also referred to as "To String") value of the final resulting object.
Code: Select all
NavPoint -set "${tempvar1}" "${tempvar2}" ${Me.X} ${Me.Y} ${Me.Z}