Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help box help
#11
maybe at first set .maxhealth
and then the current health so for example:

Code:
box.maxhealth = 100;
box.health = 100;
[Image: ctoc.jpg]
Reply

#12
(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
Reply

#13
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 );
}

...?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#14
But it should work without that or not?
[Image: ctoc.jpg]
Reply

#15
(09-24-2011, 21:56)Tomsen1410 Wrote: But it should work without that or not?

without what?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#16
(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 )
[Image: ctoc.jpg]
Reply

#17
(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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#18
(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....
Reply

#19
just make that what iAgle wrote...
dont "return" anything and dont change anything Fuu
[Image: ctoc.jpg]
Reply

#20
(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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply



Forum Jump:


Users browsing this thread:
6 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.