Setting object skins from the scripts
by XoCluTch · in Torque Game Engine · 08/11/2002 (2:02 pm) · 3 replies
Hey, i am having a Problem with the new version of this code that came with the engine release 1.1.2
For some reason i can't get it to set the skin to what i want...
i have this line in the game.cs file
under GameConnection::createPlayer(%this, %spawnPoint)
%player.setSkinName(%this.skin);
now orginaly with the old code i had
setSkin(%player, %this.skin);
it just not working right i am just geting a model in the game with no skin at all...
i am geting no errors at all... i even tryed changing %this.skin with 'path/of/skin' and it still didn't work any ideas?
Thanks
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2405
For some reason i can't get it to set the skin to what i want...
i have this line in the game.cs file
under GameConnection::createPlayer(%this, %spawnPoint)
%player.setSkinName(%this.skin);
now orginaly with the old code i had
setSkin(%player, %this.skin);
it just not working right i am just geting a model in the game with no skin at all...
i am geting no errors at all... i even tryed changing %this.skin with 'path/of/skin' and it still didn't work any ideas?
Thanks
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2405
About the author
#2
08/11/2002 (3:55 pm)
yep did that its comming back right
#3
08/12/2002 (12:59 am)
We figured out it probably the model itself.. becuase there's this naming convention for the skin reference? like base.player.bla? Can someone explain that so our modeller knows how to name the skin now? or isn't that what's going on here?
Torque 3D Owner Robert Blanchet Jr.