mrtbk
Member-
Content Count
16 -
Joined
-
Last visited
-
Medals
Everything posted by mrtbk
-
Hi everyone, i am currently working on an A&D map and am trying to figure out how to make a PSP (Player Spawn Point) that can be captured by any side and depending on which side controls this point, any member of that team can choose to respawn that the PSP or at their main base. for a team to capture the PSP i would like to make it so that a member of the team has to go to the flag and select "take control" or something like that. also i would like to have several PSPs in the map. i have no idea where to start or how to do any of this so any help solving any part of this would be greatly appreciated thank you for any input you can provide Mr-T*BK*
-
ok i discovered that arrays cannot be made public anyway i found away around that problem but a new problem came up when an person who is not the host take the point the flag changes for them then instantly changes back. i know why this happens but do not know how to solve it, i need a way to call a script and get it to run on every client computer that changes the flag, i know i can do this with a trigger but as far as i am aware i would need a trigger for each psp, which in the future could cause some problems could any one tell me how to get the script to run on every clients machine or so pass variable to a trigger
-
ok i have a problem i got all the code done but i am having a problem with one thing i have created a array of arrays so basically the array looks bases = [["Only Flag", "m_Spawn1", "none"]]; you get the idea, ok the problem i have is that i am basically change in the 3 part of each array element to which ever side controls the flag, the problem i am having is access the array from client computers (works fine on the host) i have a flag which when a team get close to it and its not theres the get an action take point which executes some code which changes a variable to true and make it public <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">westflag = true; publicVariable "westflag"; then have a trigger to run a script that changes the array <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if (!local server) exitWith {}; westflag = false; publicVariable "westflag"; sleep 0.5; player globalchat "capping flag (EAST)"; player removeAction flag1; bases set [0, ["Only Flag", "m_Spawn1", "East"]]; point1 setFlagTexture "\ca\misc\data\sever_vlajka.paa"; f1 = 2; publicVariable "f1"; publicVariable "bases"; if you need any more info just let me know and any suggestion would be greatly appreciated Mr-T*BK*
-
ye no problem hedcrusha sry i should have mentioned i found this link http://www.armaholic.com/page.php?id=1502 i have modified to so both teams have separate multiple spawn points, if you would like the modified version let me know i will send it to you, if you would like to wait till i get it full working i will let you know when i finish (if i can finish it) Mr-T*BK*
-
OK thx [WWS]WarWolf I found a multi point respawn and modified it to work for both teams i just need to know how to add a action when a player is next to a flag and get the flag to change if any one has any ideas where i can find this info i would be very greatful Mr-T*BK*
-
Any ideas where you saw this i had a little look around and the only place thing i can find is a script for 4 spawn points but couldn't modify it to work without the flag and how to change it (rephrase that couldn't attempt to modify it to work) any way thx [WWS]WarWolf and as i said before help with any of the section will be greatly appreciated Mr-T*BK*
-
i worked out why it was only working for the host, the target which was a radio tower was a target i put in and for some reason when the script was run the clients wouldn't recognise that that radio tower was the closest
-
this is the first map i have created well tried to create i have created a map with a radio tower called 'fm', i would like to know how to give the player that destroyed the tower 50 points i have tried placing a trigger with the condition '!Alive(fm)' and when activated i have tried 'player addscore 50' i have tried '_x addevenhandler ["killed", {[_this select 0] addscore 50}]' i tried loads of ideas not work could someone please help me
-
ok to try an explain this a bit better, i have placed a radio tower on the map and place a gamelogic ontop with the name obj1 and in the initialisation box put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(position obj1 nearestobject "Land_Vysilac_FM") addeventhandler ["Killed",{(_this select 1) addscore 50;} this code only seem to award points if the person hosting the game destroys the radio tower i have also tried using a trigger with the code in the activation section with no luck can any please help cos this driving me crazy
-
ok that code works fine until i start hosting the game the only person to get points for destroying a target is me, so when some one else destroys the target they don't get any points, When i host the game on a game server no one gets points when the target is destroyed
-
little help with triggers!?
mrtbk replied to hedcrusha's topic in ARMA - MISSION EDITING & SCRIPTING
there might be something on this page that can help http://community.bistudio.com/wiki/Category:Scripting_Commands -
Counting dead bodies in a trigger
mrtbk replied to Arkon2's topic in ARMA - MISSION EDITING & SCRIPTING
yes it should be possible same basic code but you need a if statement will look something like <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _dead = _this select 1; ?(side _dead==civilian): _civilian_dead = _civilian_dead + 1; this code is not guaranteed to be right this will only be a counter you will also need some code to give a radio message saying civilians death count: _civilian_dead sry i cannot give you the code for the radio message -
there is not id on the radio tower as i placed it in there but i got ti to work thank-you very much indeed
-
i have tried putting the command on the radio tower with no luck but thank you for your input
-
Counting dead bodies in a trigger
mrtbk replied to Arkon2's topic in ARMA - MISSION EDITING & SCRIPTING
Sorry the line is meant to be _overall_dead = _overall_dead + _dead; i missed a _ out hope this fixes it -
Counting dead bodies in a trigger
mrtbk replied to Arkon2's topic in ARMA - MISSION EDITING & SCRIPTING
if you create a script file with this code <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_dead = _this select 1; _overall_dead = overall_dead + _dead; well it something like this i beleive then for you trigger set it for anybody present condition: true; act: {_x addeventhandler ["killed", {[_this select 0, _this select 1] exec "yourscript.sqs"}]} foreach thislist; i think this should work basically i think you need to count them as they are killed