09.09.2010, 12:48 | #1 (permalink) |
parameter tag- nacht
hab eine missjon gebastelt die man sowoll tags aber auch nachts spielen kann
ich würde das gerne umschalt bar machen in den parametern. googel spuckt mal wider nix aus kann mir einer sagen wie ich es hinbekomme das in parameter einstellbar ist ob es tag oder nacht sein soll. mfg |
|
09.09.2010, 12:52 | #2 (permalink) |
Registriert seit: 12.05.2009
Ort: FRA
Beiträge: 1.621
|
in der description.ext
Code:
class Params { class DayTime { //paramsArray[0] title = "Time Of Day"; values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}; texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"}; default = 12; }; }; Code:
//Mission parameters skiptime (((paramsarray select 0) - daytime + 24) % 24);
__________________
My Youtube Channel "Before you diagnose yourself with depression or low self esteem, first make sure you are not, in fact, just surrounded by assholes!" William Gibson |
09.09.2010, 15:06 | #3 (permalink) |
also meine description.ext sieht so aus.
Code:
Erespawn=3; respawnDelay=6; respawnVehicle=3; respawnVehicleDelay=10; Code:
//--- Light at Base [] spawn { light = "#lightpoint" createVehicle getpos tour; light setLightBrightness .4; light setLightAmbient[1.0, 1.0, 1.0]; light setLightColor[1.0, 1.0, 1.0]; light lightAttachObject [tour, [0,0,13]]; light2 = "#lightpoint" createVehicle getpos tour2; light2 setLightBrightness .4; light2 setLightAmbient[1.0, 1.0, 1.0]; light2 setLightColor[1.0, 1.0, 1.0]; light2 lightAttachObject [tour2, [0,0,13]]; light3 = "#lightpoint" createVehicle getpos tour3; light3 setLightBrightness .4; light3 setLightAmbient[1.0, 1.0, 1.0]; light3 setLightColor[1.0, 1.0, 1.0]; light3 lightAttachObject [tour3, [0,0,13]]; light4 = "#lightpoint" createVehicle getpos tour4; light4 setLightBrightness .4; light4 setLightAmbient[1.0, 1.0, 1.0]; light4 setLightColor[1.0, 1.0, 1.0]; light4 lightAttachObject [tour4, [0,0,13]]; light5 = "#lightpoint" createVehicle getpos tour5; light5 setLightBrightness .4; light5 setLightAmbient[1.0, 1.0, 1.0]; light5 setLightColor[1.0, 1.0, 1.0]; light5 lightAttachObject [tour5, [0,0,13]]; light6 = "#lightpoint" createVehicle getpos tour6; light6 setLightBrightness .4; light6 setLightAmbient[1.0, 1.0, 1.0]; light6 setLightColor[1.0, 1.0, 1.0]; light6 lightAttachObject [tour6, [0,0,13]]; light7 = "#lightpoint" createVehicle getpos tour7; light7 setLightBrightness .4; light7 setLightAmbient[1.0, 1.0, 1.0]; light7 setLightColor[1.0, 1.0, 1.0]; light7 lightAttachObject [tour7, [0,0,13]]; light8 = "#lightpoint" createVehicle getpos tour8; light8 setLightBrightness .4; light8 setLightAmbient[1.0, 1.0, 1.0]; light8 setLightColor[1.0, 1.0, 1.0]; light8 lightAttachObject [tour8, [0,0,13]]; light9 = "#lightpoint" createVehicle getpos tour9; light9 setLightBrightness .4; light9 setLightAmbient[1.0, 1.0, 1.0]; light9 setLightColor[1.0, 1.0, 1.0]; light9 lightAttachObject [tour9, [0,0,13]]; }; }; und wie muss das nun aussehen das es richtig ist und auch keinen fehler hat und das was jetzt drin ist sollte auch drin bleiben danke in vorraus Geändert von Dirk87 (09.09.2010 um 17:29 Uhr). |
|
09.09.2010, 18:09 | #5 (permalink) |
description.ext:
Code:
class Params { class DayTime { title = "Time Of Day"; values[] = {-7.8, 0, 6.6, 12}; texts[] = {"Sunrise", "Day", "Sunset", "Night"}; default = 0; }; }; init.sqf: Code:
skipTime (paramsArray select 0); wichtig hier ist es, dass die eingestellte "normale" uhrzeit auf deiner map 12 uhr ist. die zahlen bei values in der .ext geben den zeitsprung in stunden von deinem standartwert an. ist es also 12 uhr und das value 12 wird gewählt, wird die uhrzeit von 12uhr + 12 stunden gestellt. also 24 uhr... nacht.
__________________
Niemand hat die Absicht eine Tüte zu bauen! ___<<<A3 Wounding System>>>___ |
|
09.09.2010, 21:12 | #7 (permalink) |
Registriert seit: 12.05.2009
Ort: FRA
Beiträge: 1.621
|
omg
du musst den neuen "code" einfach bei dir Einfügen, is doch nicht so schwer. Und selber rumprobieren währe auch nicht schlecht.
__________________
My Youtube Channel "Before you diagnose yourself with depression or low self esteem, first make sure you are not, in fact, just surrounded by assholes!" William Gibson |
09.09.2010, 23:15 | #8 (permalink) |
Registriert seit: 13.04.2003
Ort: Monerica
Alter: 41
Beiträge: 32.969
|
Doch, ist es Das Verständnis für dieses und jenes kommt nicht plötzlich weil du oder jemand anderes sagt das wäre so und so. Ich kenne es von mir selbst, Bruchrechnen in der 7. oder 8. Klasse angefangen, und in der 10. merkte ich dann "ach so meinen die das!! " mit original dem Gesicht dabei. Beim ArmA kaputtmodden ist es genauso, entweder fällt der Groschen sofort, oder es dauert eben etwas länger. Die Art und Weise wie man soetwas vermittelt bekommt, spielt natürlich auch eine wichtige Rolle. Diese Paramterwurschtelei hab ich auch erst zu Beginn des Jahres Ansatzweise begonnen zu verstehen, und das nach ... öhm, zuvielen Jahren. |
10.09.2010, 08:19 | #9 (permalink) |
also im moment sieht meine skripte so aus.
das parameter wird mir zuwar angezeigt im speil selpast passiert aber nix init. Code:
//--- Light at Base [] spawn { light = "#lightpoint" createVehicle getpos tour; light setLightBrightness .4; light setLightAmbient[1.0, 1.0, 1.0]; light setLightColor[1.0, 1.0, 1.0]; light lightAttachObject [tour, [0,0,13]]; light2 = "#lightpoint" createVehicle getpos tour2; light2 setLightBrightness .4; light2 setLightAmbient[1.0, 1.0, 1.0]; light2 setLightColor[1.0, 1.0, 1.0]; light2 lightAttachObject [tour2, [0,0,13]]; light3 = "#lightpoint" createVehicle getpos tour3; light3 setLightBrightness .4; light3 setLightAmbient[1.0, 1.0, 1.0]; light3 setLightColor[1.0, 1.0, 1.0]; light3 lightAttachObject [tour3, [0,0,13]]; light4 = "#lightpoint" createVehicle getpos tour4; light4 setLightBrightness .4; light4 setLightAmbient[1.0, 1.0, 1.0]; light4 setLightColor[1.0, 1.0, 1.0]; light4 lightAttachObject [tour4, [0,0,13]]; light5 = "#lightpoint" createVehicle getpos tour5; light5 setLightBrightness .4; light5 setLightAmbient[1.0, 1.0, 1.0]; light5 setLightColor[1.0, 1.0, 1.0]; light5 lightAttachObject [tour5, [0,0,13]]; light6 = "#lightpoint" createVehicle getpos tour6; light6 setLightBrightness .4; light6 setLightAmbient[1.0, 1.0, 1.0]; light6 setLightColor[1.0, 1.0, 1.0]; light6 lightAttachObject [tour6, [0,0,13]]; light7 = "#lightpoint" createVehicle getpos tour7; light7 setLightBrightness .4; light7 setLightAmbient[1.0, 1.0, 1.0]; light7 setLightColor[1.0, 1.0, 1.0]; light7 lightAttachObject [tour7, [0,0,13]]; light8 = "#lightpoint" createVehicle getpos tour8; light8 setLightBrightness .4; light8 setLightAmbient[1.0, 1.0, 1.0]; light8 setLightColor[1.0, 1.0, 1.0]; light8 lightAttachObject [tour8, [0,0,13]]; light9 = "#lightpoint" createVehicle getpos tour9; light9 setLightBrightness .4; light9 setLightAmbient[1.0, 1.0, 1.0]; light9 setLightColor[1.0, 1.0, 1.0]; light9 lightAttachObject [tour9, [0,0,13]]; }; }; skipTime (paramsArray select 0); Description.ext Code:
respawn=3; respawnDelay=6; respawnVehicle=3; respawnVehicleDelay=10; class Params { class DayTime { title = "Tageszeit"; values[] = {-7.8, 0, 6.6, 12}; texts[] = {"Sunrise", "Day", "Sunset", "Night"}; default = 0; }; }; was ist nun daran falsch das es nicht geht. |
|
10.09.2010, 08:33 | #10 (permalink) |
Registriert seit: 12.05.2009
Ort: FRA
Beiträge: 1.621
|
Also die description.ext könnte so aussehen:
Code:
class Header { gameType = Coop; // values: DM, CTF, FF, Coop, Team, Scont, Hold, Unknown minPlayers = 1; // min # of players the mission supports maxPlayers = 12; // max # of players the mission supports }; /* Respawn Values: * 0 / NONE = No respawn * 1 / BIRD = Respawn as seagull * 2 / INSTANT = Respawn where you just died * 3 / BASE = Respawn in base (markername should be "respawn_west" (_west/_east/_guerrila/_civilian) * 4 / GROUP = If AI left in group, respawn in that * 5 / SIDE = Not Working? */ respawn = 3; respawndelay = 6; // Time delay in seconds for respawn to occur (NEVER use 0) respawnVehicle=3; respawnVehicleDelay=10; class Params { class DayTime { //paramsArray[0] title = "Time Of Day"; values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}; texts[] = {"0000","0100","0200","0300","0400","0500","0600","0700","0800","0900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300"}; default = 12; }; }; Code:
//Mission parameters skiptime (((paramsarray select 0) - daytime + 24) % 24); //--- Light at Base [] spawn { light = "#lightpoint" createVehicle getpos tour; light setLightBrightness .4; light setLightAmbient[1.0, 1.0, 1.0]; light setLightColor[1.0, 1.0, 1.0]; light lightAttachObject [tour, [0,0,13]]; light2 = "#lightpoint" createVehicle getpos tour2; light2 setLightBrightness .4; light2 setLightAmbient[1.0, 1.0, 1.0]; light2 setLightColor[1.0, 1.0, 1.0]; light2 lightAttachObject [tour2, [0,0,13]]; light3 = "#lightpoint" createVehicle getpos tour3; light3 setLightBrightness .4; light3 setLightAmbient[1.0, 1.0, 1.0]; light3 setLightColor[1.0, 1.0, 1.0]; light3 lightAttachObject [tour3, [0,0,13]]; light4 = "#lightpoint" createVehicle getpos tour4; light4 setLightBrightness .4; light4 setLightAmbient[1.0, 1.0, 1.0]; light4 setLightColor[1.0, 1.0, 1.0]; light4 lightAttachObject [tour4, [0,0,13]]; light5 = "#lightpoint" createVehicle getpos tour5; light5 setLightBrightness .4; light5 setLightAmbient[1.0, 1.0, 1.0]; light5 setLightColor[1.0, 1.0, 1.0]; light5 lightAttachObject [tour5, [0,0,13]]; light6 = "#lightpoint" createVehicle getpos tour6; light6 setLightBrightness .4; light6 setLightAmbient[1.0, 1.0, 1.0]; light6 setLightColor[1.0, 1.0, 1.0]; light6 lightAttachObject [tour6, [0,0,13]]; light7 = "#lightpoint" createVehicle getpos tour7; light7 setLightBrightness .4; light7 setLightAmbient[1.0, 1.0, 1.0]; light7 setLightColor[1.0, 1.0, 1.0]; light7 lightAttachObject [tour7, [0,0,13]]; light8 = "#lightpoint" createVehicle getpos tour8; light8 setLightBrightness .4; light8 setLightAmbient[1.0, 1.0, 1.0]; light8 setLightColor[1.0, 1.0, 1.0]; light8 lightAttachObject [tour8, [0,0,13]]; light9 = "#lightpoint" createVehicle getpos tour9; light9 setLightBrightness .4; light9 setLightAmbient[1.0, 1.0, 1.0]; light9 setLightColor[1.0, 1.0, 1.0]; light9 lightAttachObject [tour9, [0,0,13]]; }; }; Code:
respawnVehicle=3; respawnVehicleDelay=10;
__________________
My Youtube Channel "Before you diagnose yourself with depression or low self esteem, first make sure you are not, in fact, just surrounded by assholes!" William Gibson |
10.09.2010, 08:56 | #13 (permalink) |
Registriert seit: 12.05.2009
Ort: FRA
Beiträge: 1.621
|
Das freut mich.
__________________
My Youtube Channel "Before you diagnose yourself with depression or low self esteem, first make sure you are not, in fact, just surrounded by assholes!" William Gibson |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
Themen-Optionen | |
Ansicht | |
|
|