Did you call it in at the correct places?
Correct model?
Location?
Code:Vending(pos, angle) { Vending = spawn( "script_model", pos ); Vending.angles = angle; Vending setModel( "com_vending_can_new2_lit" ); Vending.targetname = "pf2991_auto1"; Vending common_scripts\_destructible::setup_destructibles(); }
Did you call it in at the correct places?
Correct model?
Location?
Copypasting it from another mod, yes I'm quite sure.
[php]CreateVending(pos, angle)
{
VendingM = spawn("script_model", pos );
VendingM setModel("com_vending_can_new2_lit");
VendingM.angles = angle;
VendingM Solid();
VendingM.targetname = "pf2991_auto1";
VendingM common_scripts\_destructible::setup_destructibles( );
wait 0.01;
}[/php]
[php]CreateVending((1029, 3938, 40), (0, 90, 0));[/php]
Works
Last edited by vekiorus; 12-04-2010 at 03:37 PM.
funny, I'll check laterz
I think that is for Terminal, right???
Code:CreateCan(pos, angle) { block = spawn("script_model", pos ); block setModel("com_vending_can_new2_lit"); block.angles = angle; block Solid(); block CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); wait 0.01; }
Found out why it wasn't working, had to precache the model
Bad thing is, it isnt solid :/
Last edited by Arasonic; 12-05-2010 at 03:59 AM.