| Blockland Forums > Modification Help |
| Can't do this in torque? (multiarrays and such) |
| (1/2) > >> |
| DrenDran:
--- Code: ---$DDRP::landpoints[%pxp+%x][%pyp+%y].p = 8; echo("Z" SPC $DDRP::landpoints[%pxp+%x][%pyp+%y].p); --- End code --- (worked in C++ so I figured I'd try it) The above gives me a syntax error so I tried this: --- Code: ---$DDRP::landpoints[%pxp+%x].row[%pyp+%y].p = 8; echo("Z" SPC $DDRP::landpoints[%pxp+%x].row[%pyp+%y].p); --- End code --- That dosn't give any console errors but in the echo it just returns "Z" and no number. Can someone tell me how I can do something simular to a meta table in torque? |
| Destiny/Zack0Wack0:
No you can't do multiple arrays like that, but you can do it like this: $DDRP::landpoints[%pxp+%x,%pyp+%y] = 8; |
| DrenDran:
--- Quote from: Destiny/Zack0Wack0 on July 03, 2010, 07:01:08 PM ---No you can't do multiple arrays like that, but you can do it like this: $DDRP::landpoints[%pxp+%x,%pyp+%y] = 8; --- End quote --- That's pretty much a multiarray though? It looks like it will work, thanks! |
| Mr.LoLHaX:
So what is this :cookieMonster: |
| Destiny/Zack0Wack0:
--- Quote from: Mr.LoLHaX on July 04, 2010, 12:40:06 AM ---So what is this :cookieMonster: --- End quote --- So what are you doing here "cookieMonster" |
| Navigation |
| Message Index |
| Next page |