Page 1 of 1
scripting questions
Posted: Sun Apr 17, 2011 2:02 am
by carlinho
anybody knows how to use the mathematics line in scripting?
I want to do the following: add 10 points per minute to a team when they are holding a flag.
then if the points go over xxxx amount, the team receives a bonus...being whatever it is special attack or something...
how do you test if a team holds a flag, and how do you add 10 or whatever points per a certain amount of time to a N variable that starts with 0 at the beginning of the game?
thanks!
Re: scripting questions
Posted: Sun Apr 17, 2011 2:39 am
by Pyro
Here is some info about Math actions. It needs an update since 1.7.1 added support for Fixed type of parameters. Which are the ones that let you put 1.234 instead of just a 1.
Re: scripting questions
Posted: Sun Apr 17, 2011 3:38 am
by carlinho
thanks man, I'll study that
is there a way to check if a certain unit is holding a certain flag? or just by doing a polygon surrounding that flag and checking which team unit is there?
Re: scripting questions
Posted: Sun Apr 17, 2011 4:08 am
by Point
the flag raise and lower by capture for axis and allies flags is already in wava maps... oz helped figure that out for cwr civil war... it already works great in coops I still have to figure out how to use it in in multiplayer custom game types... game type is basically sector control a game style which was one of my favorite maps to make for operation flashpoint.
ps if you have looked at a maps with them and they didnt work i forgot to give the light and dark flags -1 as team...
Re: scripting questions
Posted: Sun Apr 17, 2011 5:18 am
by Jon God
Point wrote:the flag raise and lower by capture for axis and allies flags is already in wava maps... oz helped figure that out for cwr civil war... it already works great in coops I still have to figure out how to use it in in multiplayer custom game types... game type is basically sector control a game style which was one of my favorite maps to make for operation flashpoint.
ps if you have looked at a maps with them and they didnt work i forgot to give the light and dark flags -1 as team...
How does custom gametype work in myth?
Re: scripting questions
Posted: Tue Apr 19, 2011 3:03 pm
by Point
im not really sure the exacts on custom game type it might just put all multiplayer map that have scripts into that category...
I guess the best way to see how best to trigger it is find a plug that uses custom game types and uses them well...