Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help For a box of the friend death
#1
Good afternoon. Prompt please how to make that when you take a box of the friend, the player died.
Reply

#2
What you mean by the 'box'?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
(03-14-2014, 17:58)SailorMoon Wrote: What you mean by the 'box'?

Carepackage probably...

Thanks Barata...
Don't worry if things aren't the way you planned, in the end everything will solve itself...
Reply

#4
Freight, for 4 murders.
Reply

#5
The option can approach that the player of the team simply couldn't take a box...
Reply

#6
you mean the carepackage?
if team steals your carapackage then they should be killed?
OMA
[Image: One_Man_Army_Bag_render_MW2.PNG]
Reply

#7
Exactly! Help...

Here part of a code from _airdrop.gsc , it is possible to eat an exit here...



checkChange( team )
{
self endon ( "death" );

for ( ;; )
{
level waittill ( "joined_team" );

self setUnUsable( team );
wait .25;
}
}


setSelfAndEnemyUsable( owner )
{
foreach ( player in level.players )
{
if ( player != owner && player.team == self.team )
self disablePlayerUse( player );
else
self enablePlayerUse( player );
}

}

setUnUsable( team )
{
foreach ( player in level.players )
{
if (team != player.team)
self disablePlayerUse( player );
}
}

setUsableByTeam( team )
{
foreach ( player in level.players )
{
if ( !isDefined( team ) )
self enablePlayerUse( player );
else if ( team == player.team )
self enablePlayerUse( player );
else
self disablePlayerUse( player );
}
}


setUsableOnceByTeam( team )
{
foreach ( player in level.players )
{
if ( isDefined( self.usedBy[ player.guid ] ) )
self disablePlayerUse( player );
else if ( !isDefined( team ) )
self enablePlayerUse( player );
else if ( team == player.team )
self enablePlayerUse( player );
else
self disablePlayerUse( player );
}
}
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

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