Home   Help Search Login Register  

Author Topic: Ungroup Player  (Read 1424 times)

0 Members and 1 Guest are viewing this topic.

Offline Mysterious Hu

  • Members
  • *
Ungroup Player
« on: 29 Mar 2009, 15:56:48 »
Hi, is there an script funtion to remove a player from a group?  ???

In my multiplayer mission I want to remove players from their current groups when they die and create a new group attached to each player when he respawns. The second bit I can do. The first bit, however (removing the player from his old group), I cannot find in the ComRef.  :blink:

Offline i0n0s

  • Former Staff
  • ****
Re: Ungroup Player
« Reply #1 on: 29 Mar 2009, 15:57:51 »
Code: [Select]
[Player] join grpNullRemoves the player from his current group

Offline Mysterious Hu

  • Members
  • *
Re: Ungroup Player
« Reply #2 on: 29 Mar 2009, 16:26:20 »
Ta - I'd realised that I was coming at it from the wrong end and so tried out this: starting from a "Killed" eventhandler

_bloke = _this Select 0
_oldgroup = group _bloke
_newgroup = creategroup west

[_bloke] join _newgroup

exit

Leaving me with the old group to mess around with in the script too.