Obj script question
Moderator: Moderators
-
bodybagger
- Sergeant
- Posts: 52
- Joined: Mon Jan 06, 2003 5:27 pm
Obj script question
I have an objective for each side to complete, 1 bomb for allied and 1 bomb for axis.
How would i set up the script so that whoever completes there objective first wins and the game finishes???
Thanks in advance
How would i set up the script so that whoever completes there objective first wins and the game finishes???
Thanks in advance
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
This sounds more easy than it is...
Because level.defusing_team and level.planting_team makes only one team be able to plant the bomb... ( I think, really havent tried it ).
And you'll have to keep track of what bomb has been blown manually ( the level.targets_destroyed will be increased for both bombs and is therefore useless to determine who won ) with a thread testing the value of $targetname_of_the_bomb.exploded to see what bomb blows first...
I guess you need an old scripting fox on this... smells like copying the exploder.scr and rewriting it to be able to have two planting/defusing teams...
Because level.defusing_team and level.planting_team makes only one team be able to plant the bomb... ( I think, really havent tried it ).
And you'll have to keep track of what bomb has been blown manually ( the level.targets_destroyed will be increased for both bombs and is therefore useless to determine who won ) with a thread testing the value of $targetname_of_the_bomb.exploded to see what bomb blows first...
I guess you need an old scripting fox on this... smells like copying the exploder.scr and rewriting it to be able to have two planting/defusing teams...
-
bodybagger
- Sergeant
- Posts: 52
- Joined: Mon Jan 06, 2003 5:27 pm
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
-
bodybagger
- Sergeant
- Posts: 52
- Joined: Mon Jan 06, 2003 5:27 pm
- ZeroSkaten
- Second Lieutenant
- Posts: 159
- Joined: Sun Jan 12, 2003 11:03 pm
- Location: Canada
- Contact:
you earned it JV
Very very good work 
Together we will leave no posts un awnsered!
BTW that me in the picture

Visit my site: http://www.planetmedalofhonor.com/hk/
As I say: A 3d model a day keeps the career consultant away.
BTW that me in the picture

Visit my site: http://www.planetmedalofhonor.com/hk/
As I say: A 3d model a day keeps the career consultant away.
-
bodybagger
- Sergeant
- Posts: 52
- Joined: Mon Jan 06, 2003 5:27 pm
Yes. Use a thread like
for both the allied and axis bomb.
Code: Select all
while($allied_bomb.exploded != 1)
waitframe
teamwin allies

