Play
Shop
Clans
Users
Forum
Membership
Login
Register
Forum
Scripting
Switch teams when touch a brick
Switch teams when touch a brick
[OpTic]
replojam
Joined 28/06/2018
Posts 714
09:25 AM 11/05/2019
I don't know how to make it, help!
[BHS]
Leon
Joined 18/03/2017
Posts 527
12:54 AM 12/05/2019
[ Content Removed ]
[BHS]
Leon
Joined 18/03/2017
Posts 527
12:55 AM 12/05/2019
global.theBrick = findBrickByName("add brick name here")
g = define("onPlayerTouch")
g.script = '
c = arg[1];
if arg[0] == global.theBrick {
c.Team = obj_server.team[0]; // change 0 to the team id
}
';
[OpTic]
replojam
Joined 28/06/2018
Posts 714
09:00 AM 12/05/2019
thanks leon
1