use cmdarg().getParent() to access own XML structure ("this" will die)
This commit is contained in:
parent
f639845508
commit
b67402f084
1 changed files with 3 additions and 2 deletions
|
@ -101,8 +101,9 @@ ________________________________________________________________________________
|
|||
|
||||
<nasal>
|
||||
<script><![CDATA[
|
||||
data = props.globals.getNode(this).getNode("data");
|
||||
mode = data.getNode("mode");
|
||||
var self = cmdarg().getParent();
|
||||
var data = self.getNode("data");
|
||||
var mode = data.getNode("mode");
|
||||
modifier = data.getNode("modifier");
|
||||
f1 = f2 = 0;
|
||||
left_brake = right_brake = 0;
|
||||
|
|
Loading…
Reference in a new issue