SetModel
by Howard Dortch · in Torque Game Engine · 06/15/2004 (6:48 am) · 4 replies
I keep getting an error "wrong number of arguments" for setModel
can someone tell me exactly what this call is lookin for?
playerView.setModel( raceGender, skin )
is racegender the player.dts and the skin is the player_run.dsq ?
can someone tell me exactly what this call is lookin for?
playerView.setModel( raceGender, skin )
is racegender the player.dts and the skin is the player_run.dsq ?
#2
ConsoleMethod( GuiPlayerView, setModel, void, 4, 4, "playerView.setModel( raceGender, skin )" )
2 paramaters is wrong, 3 is wrong 4 is wrong. Thats why I asked if anyone knows what parameters are required. I did a find in files and the only place I found a reference is in the RW project and that code appears to pass 3 items so I'm a bit confused.
06/17/2004 (4:23 am)
You mean this?ConsoleMethod( GuiPlayerView, setModel, void, 4, 4, "playerView.setModel( raceGender, skin )" )
2 paramaters is wrong, 3 is wrong 4 is wrong. Thats why I asked if anyone knows what parameters are required. I did a find in files and the only place I found a reference is in the RW project and that code appears to pass 3 items so I'm a bit confused.
#3
06/17/2004 (8:33 am)
Those numbers have to account for some internal parameter passing. So althought they say 4 the number of valid parameters may only be 2 or 3... I forget what. Try calling it from script and passing no params, 1 param, 2 param, and see which one works.
#4
04/04/2005 (10:43 pm)
Ive tried it with 2 and it doesnt seem to be working. ive also looked through the forums on how to make it work, but everyone seems to install guiObjectView as a fix. Id rather use the head version of the engine and its current functions. Any ideas how to make this work? is guiObjectView going to be added?
Associate Kyle Carter