CAP -SW
CAP -SW
HI!
I want make a sw at bases, when someone cap the flag, then the sw should shoot,
example The Two Castles.
I dunno how to do this.
Can someone give me the code?
thx
I want make a sw at bases, when someone cap the flag, then the sw should shoot,
example The Two Castles.
I dunno how to do this.
Can someone give me the code?
thx
Want to improve your skill? Join the http://guleague.org!
you need to add this: The position of the WW is the position of the base.
Code: Select all
weapon
position 0 0 10
type SW
trigger oncap
eventteam -1
end
and that would be in the map file that you run.A Heart Attack wrote:you need to add this:The position of the WW is the position of the base.Code: Select all
weapon position 0 0 10 type SW trigger oncap eventteam -1 end
Actually, that would be triggered when any team caps.A Heart Attack wrote:you need to add this:The position of the WW is the position of the base.Code: Select all
weapon position 0 0 10 type SW trigger oncap eventteam -1 end
- BinarySpike
- Corporal
- Posts: 735
- Joined: Mon Mar 28, 2005 11:58 pm
- Contact:
Code: Select all
weapon
position 0 0 10
type SW
trigger oncap
eventteam -1
end
- position, is the position of the weapon
- type, is the type of weapon shot
- trigger, is the event that sets the weapon off
- eventteam, is the type of team that sets it off
- 0, rogue (unable to cap)
- 1, red
- 2, green
- 3, blue
- 4, purple
but neither are able to set the event off. so you only need 1, 2, 3, or 4.
ok, i have it now
for red team:
for blue team:
is it correct?
for red team:
Code: Select all
weapon
position 0 902 65
type SW
trigger oncap
eventteam -1
end
Code: Select all
weapon
position 0 -902 65
type SW
trigger oncap
eventteam -3
end
Want to improve your skill? Join the http://guleague.org!
no it should read:
for red team:
for blue team:
I think at least
for red team:
Code: Select all
weapon
position 0 902 65
type SW
trigger oncap
eventteam 1
end
Code: Select all
weapon
position 0 -902 65
type SW
trigger oncap
eventteam 3
end
yep, the map is big.
It's "The Two Tanks" (bzwar.bzflag.org:5155)
thx aha
It's "The Two Tanks" (bzwar.bzflag.org:5155)
thx aha
Want to improve your skill? Join the http://guleague.org!