A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE General Discussion »unit_kill command

Author Topic: unit_kill command (4 messages, Page 1 of 1)
Moderators: Dennis

SiMuLaCrUm
Joined: Oct 25, 2006

too digital


Posted: May 24, 2009 03:00 PM    Msg. 1 of 4       
How do you use it to kill another player? I know it's something like
unit_kill get_unit

but I do not remember what goes after that.


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: May 24, 2009 03:16 PM    Msg. 2 of 4       

(unit_kill (unit (list_get (players) [PLYRNUM])))


[PLYRNUM] is the number corresponding to the player.


SiMuLaCrUm
Joined: Oct 25, 2006

too digital


Posted: May 24, 2009 03:36 PM    Msg. 3 of 4       
thanks.


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: May 24, 2009 05:52 PM    Msg. 4 of 4       
The number needed for (list_get (players) #) is not the number on the left of each player in the list that comes up when you use "sv_players". It is the number that you reach when you start at 0 at the bottom of the list and count upwards. Say this was an "sv_players" list:

1 Joe 3
2 Bob 2
3 Sam 1
4 Jon 0

The numbers on the left are the numbers that the list gives you, and the numbers on the right are the numbers you actually use in the command. So, to kill "Sam", you type in:

(unit_kill (unit (list_get (players) 1)))

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 3:55 AM 156 ms.
A Halo Maps Website