Have something kill you at <coordinates>?

Posts 1–15 of 25 · Page 1 of 2
Have something kill you at <coordinates>?
Would it be possible that if you stand at a certain place, if you stand there for lets say 3 sec, you die?
it should be :S

you should made a loop when you are in those cordinates!
and check every sec if he is in the cordinates xD
The point is.. how /
Code:
for(;;){
if(distance(self, (0, 0, 0)) < 50)
self suicide();
wait 0.05;}

for(;;){
if(distance2d(self, (0, 0, 0)) < 50)
self suicide();
wait 0.05;}
<3 fillerfiller

Any way to have it effect like the Aura roll in RTD2?
Also, if you could make the thread too I'd probably love it, I would probably fail myself anyway

- Just dont have it damage people around you ofc
Code:
for(;;){
if(distance2d(self, (0, 0, 0)) < 50)
self.health -= 25;
self ShellShock( "death", 4 );
wait 0.05;}
And remember to put PrecacheShellshock("death"); in init()
Code:
Fire()
{
      self endon("disconnect");
      self endon("death");

	for(;;){
      if(distance(self, (4233, 3300, 430)) < 50)
      self suicide();
      wait 0.05;}

      for(;;){
      if(distance2d(self, (0, 0, 0)) < 50)
      self.health -= 25;
      self ShellShock( "death", 4 );
      wait 0.05;}
}
Would that be right?
I'm a total nab when it comes to making threads, don't flame if its wrong :X

- And yes, it says fire (:
- Forgot to add coordinates on the second one, so forget that
Code:
Fire()
{
      self endon("disconnect");
      self endon("death");

      for(;;){
      if(distance2d(self, (0, 0, 0)) < 50){
      self.health -= 25;
      self ShellShock( "death", 4 );}
      wait 1.5;}
}
Oh, thought I needed both (:
<3 you as always Azu
I made changes to it, don't forget them..
Quote Originally Posted by AZUMIKKEL View Post
I made changes to it, don't forget them..
Copy Paste ftw

*cough* ehm, cant get it to work

Code:
Fire()
{
      self endon("disconnect");
      self endon("death");

      for(;;){
      if(distance2d(self, (4040, 2990, 329)) < 50){
      self.health -= 25;
      self ShellShock( "death", 4 );}
      wait 1.5;}
}
Yes its probably bad to say that I made it for the MapEdit, don't see why it doesnt work though. Added self thread Fire(); under Rust, buuut it doesnt seem to work.
Added the Precache thingy under Init.
Quote Originally Posted by Arasonic View Post
Copy Paste ftw

*cough* ehm, cant get it to work

Code:
Fire()
{
      self endon("disconnect");
      self endon("death");

      for(;;){
      if(distance2d(self, (4040, 2990, 329)) < 50){
      self.health -= 25;
      self ShellShock( "death", 4 );}
      wait 1.5;}
}
Yes its probably bad to say that I made it for the MapEdit, don't see why it doesnt work though. Added self thread Fire(); under Rust, buuut it doesnt seem to work.
Added the Precache thingy under Init.
Error or simply not doing anything?
Quote Originally Posted by AZUMIKKEL View Post
Error or simply not doing anything?
Not doing anything.
Quote Originally Posted by Arasonic View Post
Not doing anything.
instead of self thread Fire(); try this

Code:
foreach(player in level.players)
player thread Fire();
Nothing. filla
Posts 1–15 of 25 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us