| Return Create A Forum - Home | |
| --------------------------------------------------------- | |
| Vision Gaming | |
| https://visiongaming.createaforum.com | |
| --------------------------------------------------------- | |
| ***************************************************** | |
| Return to: Off-Topic | |
| ***************************************************** | |
| #Post#: 2187-------------------------------------------------- | |
| need help with king of the hill | |
| By: nathan Date: March 17, 2013, 4:44 pm | |
| --------------------------------------------------------- | |
| as in the title im trying to make a king of the hill map but i | |
| need help with the scripting, | |
| if someone wants to help me out here who knows a bit of | |
| scripting | |
| ( i need a border and a capture zone + timer ) | |
| thanks in advance | |
| #Post#: 2189-------------------------------------------------- | |
| Re: need help with king of the hill | |
| By: Jackson Date: March 17, 2013, 5:52 pm | |
| --------------------------------------------------------- | |
| I would like to help but I have too many projects with Chernarus | |
| Server :| | |
| #Post#: 2190-------------------------------------------------- | |
| Re: need help with king of the hill | |
| By: nathan Date: March 17, 2013, 6:43 pm | |
| --------------------------------------------------------- | |
| aw to bad well maybe someone else ? | |
| #Post#: 2197-------------------------------------------------- | |
| Re: need help with king of the hill | |
| By: TheDictator Date: March 18, 2013, 2:05 am | |
| --------------------------------------------------------- | |
| just make it like put a radio active that circle cherno so they | |
| wouldnt be able to get out of cherno and put some mines and | |
| booby trap and the rules should be the person who will last for | |
| 2 mins on the highest building in cherno. no need to thank me | |
| lol | |
| #Post#: 2204-------------------------------------------------- | |
| Re: need help with king of the hill | |
| By: nathan Date: March 18, 2013, 10:33 am | |
| --------------------------------------------------------- | |
| well, its not in cherno its a ZUB (castle ruins) in chernarus so | |
| and i got the mines and booby traps i just need someone to tell | |
| me how i can make a screen that shows how long someone stood in | |
| a certain area in total and when the area is contested it stops | |
| counting | |
| #Post#: 2205-------------------------------------------------- | |
| Re: need help with king of the hill | |
| By: Jackson Date: March 18, 2013, 11:22 am | |
| --------------------------------------------------------- | |
| You need to create a public variable. | |
| Once a player from the playerarray list has entered the zone, | |
| then set the variable true. If the player leaves the zone, set | |
| the variable false. | |
| Get the timer to count your desired time and if after that time | |
| the variable = true then stop/restart the mission as someone has | |
| captured the area. | |
| To stop the timer if someone else enters, you can do this. | |
| When the player enters, if the variable is already true then | |
| stop the timer or send a message saying 'The area is now | |
| contested' | |
| Start the timer example: | |
| Every 10 seconds, it will check if the hill has a player in it | |
| _playerinzone = false | |
| if(player distance getmarkerpos "hill" < 50 ) then | |
| { | |
| _playerinzone = true; | |
| hint "The hill is now being captured"; | |
| }; | |
| sleep 10; | |
| }; | |
| Capturing the hill example: | |
| Every 10 seconds, it will check if the hill is contested | |
| if(player distance getmarkerpos "hill" < 50 && _playerinzone = | |
| true) then | |
| { | |
| hint "The hill is now contested"; | |
| }; | |
| sleep 10; | |
| }; | |
| These are just examples, I'm not sure if they work but when I | |
| get some free time, I'll try and make my own capture the hill | |
| version. | |
| #Post#: 2206-------------------------------------------------- | |
| Re: need help with king of the hill | |
| By: nathan Date: March 18, 2013, 12:50 pm | |
| --------------------------------------------------------- | |
| awesome thanks il try to test it to see if it works | |
| ***************************************************** |