I know many commands in alldev, like spawning things, making yourself invincible, etc. but I want to learn how to kill a player. I don't understand the "unit_kill <unit>" command, for I don't know what a "unit" is. technically, its a living object, but i don't know how to type in player 1 or something. I tried everything from normal scripting in a halo CE map, to doing something like "unit_kill player 1" and they all don't work. if someone could tell me how to kill a person, that would be helpful.
CHEATING WITH ALLDEV IS BAD. I DO NOT CHEAT, I only mess with FFG legodd on a scary map. I want to make the server kill him...
alldev help with commands
- minimario1315
- Posts: 61
- Joined: Fri Jun 08, 2007 12:08 pm
![]() |
alldev help with commands
Last edited by minimario1315 on Sat Dec 08, 2007 12:55 pm, edited 1 time in total.
- minimario1315
- Posts: 61
- Joined: Fri Jun 08, 2007 12:08 pm
![]() |
I finally learned
now that I see what it is, its easy. the command will kill a person instantly.
unit_kill (unit (list_get (players) 0))))
that exact code is it, and this is the thing. 0 is always the newest person to join. so lets say you join, and you use this command, then you die. lets say someone like "yellan" joins, and you type the command, then he dies. 0 is always the newest person to join. but be warned, if you type to kill the 1 player, but your the only character playing, you get the dreaded exception error. so be warned if you want to kill a person thats not the newest joined.
also, lets say you want to kill everyone. you just keep using the kill 0. its the newest person to join that is ALIVE. so you can use the command multiple times until everyone is dead.
unit_kill (unit (list_get (players) 0))))
that exact code is it, and this is the thing. 0 is always the newest person to join. so lets say you join, and you use this command, then you die. lets say someone like "yellan" joins, and you type the command, then he dies. 0 is always the newest person to join. but be warned, if you type to kill the 1 player, but your the only character playing, you get the dreaded exception error. so be warned if you want to kill a person thats not the newest joined.
also, lets say you want to kill everyone. you just keep using the kill 0. its the newest person to join that is ALIVE. so you can use the command multiple times until everyone is dead.
Last edited by minimario1315 on Sat Dec 08, 2007 12:55 pm, edited 1 time in total.
- Covenant_Engineer
- Posts: 90
- Joined: Fri Sep 07, 2007 8:44 am
![]() |
- DiSrUpTiOn
- Posts: 33
- Joined: Tue Jul 17, 2007 1:25 pm
- Location: Tsavo Highway
- minimario1315
- Posts: 61
- Joined: Fri Jun 08, 2007 12:08 pm
![]() |
invis elites and medusa
how would I add invisible elites in CE? I'm talking about entering something like chiron, and killing them. and medusa only works with single player. or it makes EVERYONE have medusa on. neither are what I want.