uiox 0 Posted October 25, 2002 Onsingleclick Doesn't work with a saved mission, need to reinited addeventhandler "getin" & "getout" In getout event unit is not return but the vehicle leave In command ref you say position in first it's unit first When a unit is present in a vehicle after getin, _this select 0 is always with the unit gets in first. 1) unit1 getin : return unit1, driver 2) Player getin : return unit1, cargo 2) unit2 getin : return unit1, cargo This event don't work with men only vehicles But the first application I see it's addaction to the vehicle's player! I can't for the moment or install event for ALL vehicles for disable one loop. Share this post Link to post Share on other sites
suma 8 Posted October 25, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">In getout event unit is not return but the vehicle leave. In command ref you say position in first it's unit first<span id='postcolor'> Clarification: _this select 0 is always the source of the event. Other argument types and meaning are defined below. For GetOut/GetIn therefore: _this select 0 is the vehicle _this select 1 is the position name _this select 2 is the solider getting out </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Onsingleclick Doesn't work with a saved mission, need to reinited<span id='postcolor'> This will be fixed. Share this post Link to post Share on other sites
uiox 0 Posted October 25, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">_this select 2 is the solider getting out <span id='postcolor'> Good new Thanks PS: Thank for improve time for saving... Share this post Link to post Share on other sites
SSG Plazmoid 0 Posted December 11, 2002 client v1.90 getin/getout events _this select 0 should give vehicle object but instead gives duplicate of _this select 2 which is unit that entered/exited vehicle. In a simple test, adding this event to a vehicle init field: this addEventHandler ["GetIn",{_this exec "testIn.sqs"}] and this line in the testIn.sqs file: hint format ["%1\n%2\n%3",_this select 0, _this select 1, _this select 2] gives unit (person), position, unit (person) am I doing something wrong? can someone else reproduce or better yet show me an example that gives the vehicle from _this select 0 rather than a duplicate of _this select 2. thank you Share this post Link to post Share on other sites
suma 8 Posted December 11, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (SSG Plazmoid @ Dec. 11 2002,09:20)</td></tr><tr><td id="QUOTE">client v1.90 getin/getout events<span id='postcolor'> You write "client getin events". Does this mean you see this problem in multiplayer only? Are you able to give me mission source and step-by-step guide how to reproduce the problem? Share this post Link to post Share on other sites
suma 8 Posted December 11, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (SSG Plazmoid @ Dec. 11 2002,09:20)</td></tr><tr><td id="QUOTE">and this line in the testIn.sqs file: hint format ["%1\n%2\n%3",_this select 0, _this select 1, _this select 2] gives unit (person), position, unit (person)<span id='postcolor'> I think you are misreading the output. GetIn handler is called after the unit boarded, and therefore text displayed for the vehicle and for the unit is the same (the text output for the vehicle is always the same as the text output of its commander). You can easily check _this select 0 and _this select 2 is not the same by displaying result of (_this select 0)==(_this select 2). You can also use some other functions to distinguish it, like displaying result of weapons (_this select 0) and weapons (_this select 2). Share this post Link to post Share on other sites
SSG Plazmoid 0 Posted December 11, 2002 ah, you are exactly right! It looks like the same output from _this select 0 and _this select 2 for the getin event for example but trying your suggestion I looked at the weapons for _this select 0 and _this select 2. Â The result was vehicle weapons (a t72 in my example) for _this select 0 and personal weapons (west officer) for _this select 2. I was then able to do something with the vehicle object passed to the getin event. _bob = _this select 0 deletevehicle _bob select 0 To answer your question, I'm creating a multiplayer mission in the mission builder. My overall goal is to create a system where if a friendly unit steals an enemy vehicle that unit will fly a "don't shoot me flag" while in that enemy vehicle. Executing the script on clients which are the same side as the unit in the stolen vehicle will ensure that the enemy doesn't learn of their lost vehicle because of the flag. Because I'm attempting to use this system for more than one vehicle per side I need to determine which vehicle triggered the getin or getout event. So, even though it looks like the output from _this select 0 and _this select 2 are the same I now know they aren't. thanks! Share this post Link to post Share on other sites