Jump to content

logan83

Member
  • Content Count

    125
  • Joined

  • Last visited

  • Medals

  • Medals

Posts posted by logan83


  1. oks thanks Kylania but its for an important part of the mision... its important to the ambientation of the mision...

    JTS_2009 ill try it...

    ---------- Post added at 21:18 ---------- Previous post was at 21:11 ----------

    while {alive player} do
    {
    waitUntil {player != vehicle player && cameraOn == vehicle player && cameraView == "External"};
    
    vehicle player switchCamera "Internal"
    };
    

    this will work

    nopes.... dont work... :(


  2. Hi To All!! im tryin force the players to use first person when entry in a vehicle... i try somethig like this...

    
    while {true} do
    {
    	if(vehicle player != player) then
    		{
    		thirdperson_allowed = false;
    			while {not thirdperson_allowed} do
    				{
    					if(cameraView == "EXTERNAL" || cameraView == "GROUP") then
    						{
    						vehicle player switchCamera "INTERNAL";
    						};
    
    							sleep 0.1;
    				};
    		};
    
    	if(vehicle player != player) then
    		{
    		 thirdperson_allowed =true;
    		};
    
    };
    
    
    

    I get in in a vehicle... and nothing hapens... but when i get Out... The first person view its running... :O what the.... i serch in the forum but i cant fix the problem... some help?


  3. Hi Again mates, i need to know if i can use any form in multiplayer like "player" in single player.... i try to explain my self better

    Single Player Mode:

    Player distance Car <= 50 // This condition only run in Sp right?

    ok i want the same, but in MP and with all the player that are playing the mision in that moment... but not all at the same time... i need the condition can be triggered by any of the fifty player, but cant Be "by side"... any suggestion


  4. the syntax looks good to me... but it is hard to tell if that will get the results you need.

    i don't use much triggers but i would expect "onact" to be were you execute something... and condition where you test for boolean.

    @kylania

    also suspected that the mix could confuse the interpreter... but just tested it and it works no prob.

    xD im sorry, i refer to the Condition field o course.... :)

    ---------- Post added at 01:33 ---------- Previous post was at 01:31 ----------

    Maybe try:

    (obj0ok && obj1ok) && (obj3ok || obj5ok || objxtraok)

    Also, that would be in the Condition of a trigger, not the onAct.

    Taaaadaaaaaaaa!!! And Works perfectly... thanks mate... :)


  5. Hi mate, lets to see...

    the obj#ok are multiple types of Targets accomplished (like go to that position, kill this officer, destroy that vehicle...) and i want to make a script that depending of the type of objetive accomplished, the script run a type of end... some like:

    run the FINALMALO only if one of this variables groups are True "obj0ok and obj1ok and obj3ok" or "obj0ok and obj1ok and obj5ok" or "obj0ok and obj1ok and objxtraok"...

    And run FINALBUENO only if one of this variable groups are true "obj0ok and obj1ok and obj3ok and obj4ok and obj5ok and objxtraok" or "obj0ok and obj1ok and obj3ok and obj5ok and objxtraok and obj2ok"

    the idea its run the end, by type of obj#ok, not by quantity... i tryi t to my way... but it seems to be something wrong in the group of variables...

    i can Run FINALMUYBUENO... but no the others...

    excuse my English please


  6. Hi every body... im a newbie in the scripts world and i Need some help with a Structure...

    if ((obj0ok and obj1ok and obj2ok and obj3ok) || (obj0ok and obj1ok and obj2ok and obj5ok) || (obj0ok and obj1ok and obj2ok and objxtraok) || (obj0ok and obj1ok and obj4ok and obj3ok) || (obj0ok and obj1ok and obj4ok and obj5ok) || (obj0ok and obj1ok and obj4ok and objxtraok)) then
    		{
    
    			sleep 1;
    			FINALREGULAR=true;
    
    		}
    

    Whats Wrong? any suggestion to do this type of conditions groups more simply? Thanks a lot

    this is the entire script... its a Endings Checker... depending what conditions you active...you have a diferent ending...

      	if (obj0ok and obj1ok and obj2ok and obj3ok and obj4ok and obj5ok and objxtraok) then
    {
    	sleep 1;
    	FINALMUYBUENO=true;
    
    }else{
    
    	if  ((obj0ok and obj1ok and obj3ok and obj4ok and obj5ok and objxtraok) || (obj0ok and obj1ok and obj3ok and obj5ok and objxtraok and obj2ok)) then
    	{
    
    		sleep 1;
    		FUNALBUENO=true;
    
    	}else{
    
    		if ((obj0ok and obj1ok and obj2ok and obj3ok) || (obj0ok and obj1ok and obj2ok and obj5ok) || (obj0ok and obj1ok and obj2ok and objxtraok) || (obj0ok and obj1ok and obj4ok and obj3ok) || (obj0ok and obj1ok and obj4ok and obj5ok) || (obj0ok and obj1ok and obj4ok and objxtraok)) then
    		{
    
    			sleep 1;
    			FINALREGULAR=true;
    
    		}else{
    
    			if  ((obj0ok and obj1ok and obj3ok) || (obj0ok and obj1ok and obj5ok) || (obj0ok and obj1ok and objxtraok)) then
    			{
    
    				sleep 1;
    				FINALMALO=true;
    
    			}else{
    
    				if (obj0ok and obj1ok) then
    				{
    
    					Sleep 1;
    					FINALMUYMALO=true
    
    				}
    				}
    			}
    		}
       	};
    
    exit
    


  7. Hi mate, this is what i do... its too simple but works... make a script.sqs and call it "talkin.sqs" or whatever you want. in side of the script you have to put something like this....

    [/code]

    UsSquadLeaderName Globalchat "Hi mate u want some cofee??";

    ~3

    ResistanceMemberName Globalchat "oh please! i call to my friends via radio, they sure come to take a cofee too!!";

    ~5

    ResistanceMemberName Sidechat "BlackFox, this is RedSnake, do you readme??";

    ~4

    ResistanceRadiochaterName sidechat "here BlackFox";

    ~2

    ResistanceMemberName Sidechat "BlackFox, Come to my position, i have some cofee to you";

    ~4

    ResistanceRadioChaterName Sidechat "Roger That, BlackFox on the Way!";

    ~5

    exit

    To launch the script, put an activator whit the condition you wish and in the OnAct Field

    [] exec "talking.sqs"

    I use Globalchat to talk person to person and Sidechat to simulate Radio transmitions. Note you cant make sidechat between tho different Factions....


  8. while {true} do {

    MARKER setMarkerPos (getPos VEHICLE);

    sleep 1;

    };

    yes, i knew that i can do this, but the game Crash past some minutes... i think is due to the combination the blinking marker bucle ("Gpspos" setmarkeralpha 0; sleep 0.4; "Gpspos" setmarkeralpha 1; sleep 0.2; "Gpspos" setmarkeralpha 0; sleep 0.4; "Gpspos" setmarkeralpha 1; ) and the actualization of the marker position.

    Drow09

    can u have the marker assume the user name of the player in MP?

    I´m very sorry, but I cant understand What are you saying to me? im not a good english speaker :o

    kylania

    setMarkerText

    uhm... how can help, put text in the Marker?? im a newbie scripter... this is my third serious script. xDDDDDD can you extend your explanation please??

    Thanks to all for the Help!!


  9. My idea is create a scrit that simulate a action to put a Rastreator attached to a vehicle, to track her position via map or GPS, but i have a problem... i cant attach _mrk (marker) with _veh (vehicle to track) any suggestion?

    to launch the script i put this in the init of the vehicle:

     Emisor = This addAction ["<t color='#ffff11'>Colocar Rastreador</t>","scripts\Rastreador.sqf",[this],1,false,false,"","player distance cursortarget <4"];

    And This is the script:

    _veh = _this select 0;
    _unit = _this select 1;
    _veh removeAction Emisor;					// Quita el Adaction del Vehiculo
    
    
    
    // El Marcador Gps
    
    _mrk = createMarker ["Gpspos", _veh];
    	"Gpspos" setMarkerColor "ColorRed";
    	"Gpspos" setMarkerShape "ICON";
    	"Gpspos" setMarkerType "mil_triangle"; 	//  Puede ser "dot" , "hd_dot",  "mil_dot", "mil_circle", "mil_box", "mil_triangle", "select" y muchos mas en http://community.bistudio.com/wiki/cfgMarkers
    	"Gpspos" setMarkerSize [2, 2];
    	"Gpspos" setMarkerDir 180;
    
    
    
    sleep 0,1;
    
    // Emisor GPS
    _unit playMove "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon";
    [color="#FF0000"]_mrk attachto  [_veh, [0,0,0]];[/color]  // return error
    
    	while {alive _veh} do
    	{
    	"Gpspos" setmarkeralpha 0;
    	 sleep 0.4;
    	 "Gpspos" setmarkeralpha 1;
    	 sleep 0.2;
    	 "Gpspos" setmarkeralpha 0;
    	 sleep  0.4;
    	 "Gpspos" setmarkeralpha 1;
    	 sleep 0.2;
    };
    
    
    


  10. 0 = [] exec[b]VM[/b] "comunicacion.sqf";
    

    exec is for .sqs files, you're coding in .SQF which means you need to use execVM

    and anything you run with execVM from a trigger needs a script handle, in this case 0 =

    You should also move the sleep 3; above the last }; to lighten up the loop.

    Perfect!! I spent two hours trying to fix the script.... without thinking that the ruling was the handler, thank you so much Cuel!!!


  11. i have the same problem with a similar script... when i Launch the script, the game returme the same error MISING {... my script its simple

    -----------------------------------------

    sleep 3;

    while {alive player} do

    {

    if (!alive buzo2) then {

    hint "El buzo2 No esta vivo";

    };

    if (!alive buzo3) then {

    hint "El el buzo3 No esta vivo";

    };

    };

    sleep 3;

    --------------------------------------------

    i launch the script in the OnAct of a trigger... with this line: [] exec"comunicacion.sqf" i can´t put in the OnAct fielt execvm "comunicacion.sqf"... and when i put a sleep code... Returnme a error... :S

    Sorry For my English and i agree some Help :(

×