187Killa
Member-
Content Count
35 -
Joined
-
Last visited
-
Medals
Community Reputation
2 NeutralAbout 187Killa
-
Rank
Private First Class
-
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
okay, was just wondering thanks! -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
you commented on my "safezone" said that is eats up a lot of cpu, well I tried using a trigger condition: this act: player allowDamage false; hint "spawn protection"; decact: player allowDamage True; It worked but on the deact sometimes the damage never got turned back to 1 so people would be invincible at times. I then tried two triggers one for the safezone damage 0 and then once they left safezone the other trigger was used to turn damage to 1. The scripted in safezone works 100%. I was just wondering if you had a better idea or if it was better to use the two triggers instead of the script for performance. -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Man That works perfectly. Hud works only thing I dont like and wish to change is the timer on my hud it shows 1560 seconds instead of MM:SS what would I change in your script to change the format of that like the hint of time left on mission. -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yea I have wrote like 3 different time scripts now. None of them are doing the job... for some reason this part of init.sqf isnt working at all I have found a workaround for it though, if i remove everything below PointsR=scoreSide east; the hud will display and work but with them present the hud never shows up. the file that have the variables for the HUD are below. engine.sqf init.sqf just in case I have messed something up in it -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ran into last problem. a) my timer on hud will just reset back to inital time for some reason on dedicated server but works from local thats why i didnt notice till i put everything on dedicated to test for errors. its starts at 25:59 once its reaches 25:00 it goes back to 25:59 time.sqf Hud update.sqf -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i figured it out. turns out i dont even need to do that i can leave my compileprocess.... and the hud still updates??? i dunno somehow it works and thats all that matters to me! Thank you so much for your time and effort! I have learned a great deal from you! Hoping pay it forward on here! thanks again! -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
init.sqf keeps saying im missing a } or { EDIT-------------------- fixed the bracket issue but getting a generic error in expressions west and east, but since they are listed in the init they should be do i need to make pointsA=scoreSide West; publicvariable = A; etc...? -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
okay i didnt know if i had to do what i been doing with the compile process numbers! Thank you also this statement has a missing } i add one where i thought but then it just gives the error on new line -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
when you say replace by hud in hint do you mean hintSilent format [call compile preprocessFileLineNumbers "scripts\hud\hud_create.sqf";] hudcreate.sqf hudupdate.sqf -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Okay im still stuck. The script I did should work. However for my "hud" with each score and server time to work I need to tie in "pointsA" "pointsR, minutes, pointlimit and im not sure how to do that everything i have tried hasnt worked. init.sqf motor.sqf my hud uses motor.sqf to update it so pointsA,pointsR,minutos,segundos,pointlimit all need to be in there and right now im not getting a error code but my hud is just blank Original motor.sqf -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
okay and one thing I didnt do addscore because im a little confused after searching it people confused the hell outta me so many different ways of going about this. could you give like a example script of it this is what ive gotten so far unitkilled = _this select 0; _killed = _this select 1; if(isServer) then {unitkilled = { { if(side_x isEqualToWEST) then { _x addScore 1; }; }forEach allPlayers; }; if(side _x isEqualTo EAST) then { _x addEventhandler ["killed", unitkilled]; }; }forEach allUnits; }; would just place that in init.sqf and would be good? -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
yea i have the param set up in description but no matter what i choose in paramaters in the top right corner it never works only way to adjust time is to edit the description file but all my other params work. so maybe i need to try your timer= 60 method although "classname = 1,2,3..etc params work for my other options. But im not to worried about it as for mission time can be a standard thing. I was trying to make a hub and got stuck... 1) after making your layout in gui editor.... and clicking safe zone.... and saving it where does it save too or how do i go about getting all the info for a Rsccut i make. not having much luck googling it 2) how do you apply script to it like lets say i want the match time in the top center as well as the score for each side.... after you make the rsccut how exactly do you script it in? i have a sample mission beside me and his hud i just dont see how it is linked to read the different things he has it doing. -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have successfully did the timer but i dont know how to make the game check which side had the most kills and declare that side a winner. also I cant use my descrip. paramarray select 1 it wont recognize the time parameters put but its okay I can use 25 mins time as the standard! init.sqf -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
okay and i switched them to english so you'd understand what they said in case you didnt. I know minutes, minutos all have to be the same wording! and i made them public variables in the engine.sqf and executed in the init sqf. so if im understanding you correctly to make them global (which would make them work on dedicated server) i just need to define them without a _ _minutes ="times up" I was wondering if that was how i would define the variable in init.sqf or if it would be something different such as time > estimatedtimeleft; -
End mission when score is reached
187Killa replied to 187Killa's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Those files names are like you said "init" "initplayerlocal etc.. for the sake of just posting the code i short handed them. And I gotcha! Thats kinda what I was wondering if "victim" would work for me or if "victim" needs to be like newGuy oldGuy! that explains alot now lol Im gonna run through the code and ill get back in touch! my repetitive script does work, in fact everything works 100% so far that I had done on my own the only thing i hadnt got to work was the EH we been going back and fourth on! ill let you know shortly how its going! ---------------------------------------EDIT------------------------------------------------------------ Everything works like a charm now! have one slight error though not sure why "game timer" works perfectly on local server dedicated server it doesnt ever start counting down and I have the game ending when timer reaches 0 it ends the only thing is how do I have the game check both sides number of kills to decide who wins and who loses.. time = end3 I know how to use the BIS_fnc_MP but not sure the commands to tell or how to script ill give it a shot and tell me what it is init.sqf "gamefinished" game time displays on the hud it works on local server / single player but dedicated server it doesnt work. trigger is used when time runs out description / init.sqf /engine.sqf