ItsMods

Full Version: box help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
maybe at first set .maxhealth
and then the current health so for example:

Code:
box.maxhealth = 100;
box.health = 100;
(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
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 );
}

...?
But it should work without that or not?
(09-24-2011, 21:56)Tomsen1410 Wrote: [ -> ]But it should work without that or not?

without what?
(09-24-2011, 22:09)iAegle Wrote: [ -> ]
(09-24-2011, 21:56)Tomsen1410 Wrote: [ -> ]But it should work without that or not?

without what?

block SetCanDamage( true )
(09-24-2011, 22:09)Tomsen1410 Wrote: [ -> ]
(09-24-2011, 22:09)iAegle Wrote: [ -> ]
(09-24-2011, 21:56)Tomsen1410 Wrote: [ -> ]But it should work without that or not?

without what?

block SetCanDamage( true )

If you want them to be destroyed .. then no it wont work without
(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....
just make that what iAgle wrote...
dont "return" anything and dont change anything Fuu
(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
Pages: 1 2 3