ItsMods
spawning models - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: spawning models (/Thread-spawning-models.html)

Pages: 1 2 3


spawning models - Xzite - 09-06-2011

I can't load the models Sad.
I found some models in the assetviewer: one of them is mp_crisis_nuke

well i precached it, in zone source
Code:
xmodel, mp_crisis_nuke
and the material to.
And when that was finished i putted it in my mod:
Code:
spawnModel() { testEnt = spawn( "script_model", (1552, 800, 100 )); testEnt SetModel( "mp_crisis_nuke" ); }
Now it should work, but it dont (maybe i have to put files in the mod just like custom models IDK :S)

so plz help me Big Grin


RE: spawning models - iAegle - 09-06-2011

remove the space in the .csv

xmodel,mp_crisis_nuke


RE: spawning models - Xzite - 09-07-2011

nope doesnt workHuh


RE: spawning models - Rendflex - 09-07-2011

Where did you thread it from?


RE: spawning models - Xzite - 09-07-2011

spawnModel()
{
testEnt = spawn( "script_model", (1552, 800, 100 ));
testEnt SetModel( "mp_crisis_nuke" );
}

player thread spawnModel();


thread it from onPlayerConnect


RE: spawning models - OrangePL - 09-07-2011

try self thread

ninja edit : and do what @Rendflex said


RE: spawning models - Rendflex - 09-07-2011

...You're supposed to thread that from Init.


RE: spawning models - iAegle - 09-07-2011

(09-07-2011, 16:06)Rendflex Wrote: ...You're supposed to thread that from Init.

He's not supposed to thread it at all


RE: spawning models - Madnesslink5 - 09-07-2011

You need to precache it in your .gsc script aswell as in the zone source.

In init(), precacheModel("crisis_nuke_mp whatever it was");


RE: spawning models - Xzite - 09-07-2011

(09-07-2011, 17:47)Madnesslink5 Wrote: You need to precache it in your .gsc script aswell as in the zone source.

In init(), precacheModel("crisis_nuke_mp whatever it was");

how about read the main part -.-