Author Topic: can teamchange scripts wait?  (Read 756 times)

0 Members and 1 Guest are viewing this topic.

Offline Peu

  • Soldier
  • **
  • Posts: 117
can teamchange scripts wait?
« on: August 02, 2008, 08:50:57 pm »
at least until the person is dead. As in, after finding a victim for the change, it waits until that person dies, or until a timer runs out, whereupon the script chooses another person.

being in the middle of an epic attack, and then going turncoat in midair is lame.

Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: can teamchange scripts wait?
« Reply #1 on: August 03, 2008, 09:21:16 am »
Some variables and 'onplayerkill' :

Code: [Select]
var Changed: var[1..32] of boolean;

//then something that will change Changed[ID] := true;

//and then onplayerkill:
if Changed[victim] = true then
//then change the victims team with Command('/setteam <Wanted team> <ID>')
Also Known As REIMA


Lol Happles (happy apples)

Offline Peu

  • Soldier
  • **
  • Posts: 117
Re: can teamchange scripts wait?
« Reply #2 on: August 07, 2008, 07:07:26 pm »
I see, ty