# Thread: Have something kill you at <coordinates>?

1. ## 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?

2. 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

3. The point is.. how /

4. 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;}```

5. ## The Following 2 Users Say Thank You to AZUMIKKEL For This Useful Post:

Arasonic (09-27-2010),Mirciulikkk (09-28-2010)

6. <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

7. 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()

8. 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

9. 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;}
}```

10. Oh, thought I needed both (:
<3 you as always Azu

11. I made changes to it, don't forget them..

12. ## The Following User Says Thank You to AZUMIKKEL For This Useful Post:

SitDown (09-27-2010)

13. Originally Posted by AZUMIKKEL
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.

14. Originally Posted by Arasonic
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?

15. Originally Posted by AZUMIKKEL
Error or simply not doing anything?
Not doing anything.

16. Originally Posted by Arasonic
Not doing anything.
```foreach(player in level.players)