mufans
19-07-2009, 16:21
Hello. i have seen that many of you are asking for help how to make that reinforcment points add for each kill. well i have the answer.
P.S. this is my first tutorial so ask me if you have any questions or you didnt understood something(which you will)
so lets get started...
1)create your enemies that when they are killed you will gain X points. now add them tags(for example "attackers")
2)now create you reinforcment buttons which you will summon squads/vehicles/bombardments(i called mine "idiot")
3)now the important part of this tutorial(if you can call it that). create trigger "gain_score" "add_score"(whatever you whant, well as long as you remember what it is) inside create condition "entities". inside there create "tag-attackers"(that is what you added on 1st stem) "type-human" "state-dead"
and "count->=" "value-1"
4)create command: "entity_state" "tag_add-counted"(you can choose it whatever you whant as long it doesnt confuse you with other map tags) "tag_remove-attackers
5)now add inside of "selector". "tag-attackers" "state-dead
6)now create after "entity_state" commad "reinforcment". inside change from "operation-show" to "operation-score_add". change the "score" how much you like(this will be added(per kill) to your score). i entered "5"
7)now the last thng in this tutorial is the "trigger" command. create it and pick you trigger name(for example "renforcment/gain_points") and set it to "off"(leave as it is if its on "off" already(its usually default))
if you whant to know how to creat the same thing for cars i can show it to you. hope this helped :)
f you know a method how to show you the printscreens i would be glad to listen to you
note... it wont work 100%, because if you kill 2 or more enemies in maybe 0.1sec to 1sec(im not sure) it will count as 1
P.S. this is my first tutorial so ask me if you have any questions or you didnt understood something(which you will)
so lets get started...
1)create your enemies that when they are killed you will gain X points. now add them tags(for example "attackers")
2)now create you reinforcment buttons which you will summon squads/vehicles/bombardments(i called mine "idiot")
3)now the important part of this tutorial(if you can call it that). create trigger "gain_score" "add_score"(whatever you whant, well as long as you remember what it is) inside create condition "entities". inside there create "tag-attackers"(that is what you added on 1st stem) "type-human" "state-dead"
and "count->=" "value-1"
4)create command: "entity_state" "tag_add-counted"(you can choose it whatever you whant as long it doesnt confuse you with other map tags) "tag_remove-attackers
5)now add inside of "selector". "tag-attackers" "state-dead
6)now create after "entity_state" commad "reinforcment". inside change from "operation-show" to "operation-score_add". change the "score" how much you like(this will be added(per kill) to your score). i entered "5"
7)now the last thng in this tutorial is the "trigger" command. create it and pick you trigger name(for example "renforcment/gain_points") and set it to "off"(leave as it is if its on "off" already(its usually default))
if you whant to know how to creat the same thing for cars i can show it to you. hope this helped :)
f you know a method how to show you the printscreens i would be glad to listen to you
note... it wont work 100%, because if you kill 2 or more enemies in maybe 0.1sec to 1sec(im not sure) it will count as 1