Heyho
first of all, hello to everyone
Im new and im planning to release some of my mods here soon.
But now i got a problem spawning a crate ... i hope someone can help me?
The code for the crates:
And my code to spawn a crate:
but no crate appears.
Whats the problem?
Vanoq
(sry for my bad english, im ger
)
first of all, hello to everyone

Im new and im planning to release some of my mods here soon.
But now i got a problem spawning a crate ... i hope someone can help me?
The code for the crates:
Code:
CreateBlocks(pos, angle)
{
if(!level.CreateBunkers) return;
block = spawn("script_model", pos, 1 );
block setModel( level.crateModelFriendly );
block.angles = angle;
wait 0.01;
}
roundUp( floatVal )
{
if ( int( floatVal ) != floatVal )
return int( floatVal+1 );
else
return int( floatVal );
}And my code to spawn a crate:
Code:
self CreateBlocks(self.origin, (self getPlayerAngles()));Whats the problem?
Vanoq
(sry for my bad english, im ger
)



![[Image: 30xhrep.png]](http://i48.tinypic.com/30xhrep.png)