From: laakerules
Ya, but i dont understand what it means invalid number of parameters. This is my second script with object DTM so i know nothing of how it works. I just used the tool and put the numbers in with the one spot format.
So what does it look like with the path version?
Invalid number of parameters is like a invalid amount of information within it.
function ObjDTM_WalkPath(Path: TStringArray; FlagDistance, PollRate,
Tries: Integer; CheckEndPoints, GroundLevel: Boolean): Boolean;
That's all the information that needs to be included.
Example:
ObjDTM_WalkPath(['15:66:6:1:7:142:65:2:7:126:56:2:7:134:76:2:7:123:104:10:7:90:79:10:7:90:71', '9:97:3:3:7:45:111:6:7:76:83:7:7:114:124', '13:55:6:2:7:31:70:2:7:30:46:3:7:111:82:3:7:116:90:3:7:85:142:3:7:17:96', '31:27:6:2:7:101:68:2:7:102:92:2:7:83:128:2:7:51:101:2:7:39:89:2:7:30:49', '45:15:9:2:7:78:29:2:7:86:41:2:7:94:53:2:7:90:69:2:7:98:29:2:7:118:109:1:7:50:75:1:7:34:82:1:7:22:62', '10:73:6:2:7:54:57:2:7:74:65:2:7:110:57:2:7:118:93:3:7:72:87:3:7:28:87', '57:75:5:3:7:72:59:3:7:83:67:3:7:96:63:3:7:100:91:3:7:71:107'],6,100,80,False,True);
It will wait until within 6 to walk to the next spot, the poll rate is 100, it will attempt finding the Obj_DTM 80 times, it will not check for end points, and the path is on ground level.