09-22-2011, 15:41
09-22-2011, 23:32
(09-22-2011, 15:41)Tomsen1410 Wrote: [ -> ]maybe at first set .maxhealth
and then the current health so for example:
Code:box.maxhealth = 100;
box.health = 100;
i put what u said but didnt work
09-24-2011, 17:20
Code:
createBlock( location, angle )
{
block = spawn( "script_model", location, 1 );
block setModel( "mp_supplydrop_ally" );
block.angles = angle;
block.maxhealth = 100;
block.health = 100;
block SetCanDamage( true );
}
...?
09-24-2011, 21:56
But it should work without that or not?
09-24-2011, 22:09
(09-24-2011, 21:56)Tomsen1410 Wrote: [ -> ]But it should work without that or not?
without what?
09-24-2011, 22:09
09-24-2011, 22:10
09-26-2011, 04:50
(09-24-2011, 17:20)iAegle Wrote: [ -> ]Code:createBlock( location, angle )
{
block = spawn( "script_model", location, 1 );
block setModel( "mp_supplydrop_ally" );
block.angles = angle;
block.maxhealth = 100;
block.health = 100;
block SetCanDamage( true );
}
...?
ok os i put
createBlock(origin, angle)
{
block = spawnstruct();
block.location = origin;
block SetOwner( level );
block.angle = angle;
block.maxhealth = 175;
block.health = 175;
block SetCanDamage(true);
return block;
}
and its not working....
09-26-2011, 17:52
just make that what iAgle wrote...
dont "return" anything and dont change anything
dont "return" anything and dont change anything
09-26-2011, 17:53
(09-26-2011, 04:50)Gamemaster20 Wrote: [ -> ](09-24-2011, 17:20)iAegle Wrote: [ -> ]Code:createBlock( location, angle )
{
block = spawn( "script_model", location, 1 );
block setModel( "mp_supplydrop_ally" );
block.angles = angle;
block.maxhealth = 100;
block.health = 100;
block SetCanDamage( true );
}
...?
ok os i put
createBlock(origin, angle)
{
block = spawnstruct();
block.location = origin;
block SetOwner( level );
block.angle = angle;
block.maxhealth = 175;
block.health = 175;
block SetCanDamage(true);
return block;
}
and its not working....
Dude, its a fucking spawnStruct ofcourse its not working