i'm adding a new model to waw and i can see it in asset viewer and it looks fine but when i try add it to the game it goes invisible i have tried changing the character scripts and i made my own script but the model still goes invisible
anyone got any idea what i'm doing wrong>?
Code:
init()
{
thread onPlayerConnect();
preCacheModel("custommodel");
}
onPlayerConnect()
{
for(;;)
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
for(;;)
{
self waittill("spawned_player", player);
self setModel("custommodel");
}
}
my csv
Code:
xmodel,custommodel
rawfile,character/char_usa_raider_player_lmg.gsc
material,visor
material,custommodel
character script
Code:
main()
{
self setModel("custommodel");
}
precache()
{
precacheModel("custommodel");
}