Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Ok. i Dont got any code to display. but im here for a questions.
Is it possible to have a checkpoint for each team. for the oposite team to plant C4. ? Can i get a example code?
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
I know that. but How would i go about the two checkpoints themselves? if the team is in the others checkpoint. becuase as far as i know. only one checkpoint is aloud ..
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
Only the team will see their own checkpoint.
The limit is 1 checkpoint per player.
Posts: 647
Threads: 34
Joined: Apr 2009
Reputation:
0
both teams can have one checkpoint with setplayercheckpoint
so it would look something like this;
public OnPlayerSpawn
{
if(getplayerteam == 1)
{
setplayercheckpoint
}
if(getplayerteam == 2)
{
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Ok, i got it. now how would i set each checkpoint up for each team? because the wiki says only 1 checkpoint can be visible at a time. so .. how would i make so each team can plant a bomb in each others base?
Posts: 647
Threads: 34
Joined: Apr 2009
Reputation:
0
It means one checkpoint for each player
just try it like i showed you..ow..i see...under if(getplayer team == 2 i forgot the Setplayercheckpoint
so put setplayercheckpoint under there to
and then test it
Posts: 86
Threads: 0
Joined: May 2010
Reputation:
0
Not sure if there is a release here, but you can take a capture the flag script and look at that, they should have a similar checkpoint system for two teams. Or any other tatical objective gametype.
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Thanks killer. Im examining the code right now!