Mr H.
Member-
Content Count
597 -
Joined
-
Last visited
-
Medals
Community Reputation
402 ExcellentAbout Mr H.
-
Rank
Gunnery Sergeant
Contact Methods
-
Website URL
https://mrhmilsimtools-arma3-mod.wikia.com/wiki/MRHMilsimTools_ARMA3_Mod_Wiki
-
Biography
Whiskey Tango Foxtrot?!
-
Youtube
https://www.youtube.com/channel/UCRAc5T6CsfXodKi9kKTET8Q?view_as=subscriber
-
Steam url id
https://steamcommunity.com/id/wizardofodds/
-
Twitch.Tv
https://www.twitch.tv/lunaticwraith
Profile Information
-
Gender
Male
-
Location
https://mrhmilsimtools-arma3-mod.wikia.com/wiki/MRHMilsimTools_ARMA3_Mod_Wiki
Recent Profile Visitors
-
Cockheaven started following Mr H.
-
Coladebote started following Mr H.
-
You've got the uid so you can retrieve it with https://community.bistudio.com/wiki/BIS_fnc_getUnitByUid
-
You kind of answered your own question : https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#PlayerConnected 😉
-
getting the player inside a medical car healed
Mr H. replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
To heal why don't you use the ace function ? [_unit,_unit] call ACE_medical_fnc_treatmentAdvanced_fullHeal; -
getting the player inside a medical car healed
Mr H. replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Assuming your code is correct here's how I would set it up : In your initserver.sqf In your init.sqf Using cba events to run some code where unit is local is how ACE does it instead of remote executing, I believe it's better optimized this way. -
getting the player inside a medical car healed
Mr H. replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Does the rest work ? If so have you tested just the text bits in the console to see if they work ? -
getting the player inside a medical car healed
Mr H. replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
There are a few other things that are not ok in your code: replace the WEST in your remote exec's by _unit. And anyway if I where you I'd just remote exec the whole healing.sqf where unit is local (and remove all the remote exec's inside) also in the line where you use the eject action _this should be _unit. Sorry for not explaining everything or pasting full code but I'm on my phone. -
getting the player inside a medical car healed
Mr H. replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Okay so first you should add the handler only on the server. Best way is to add it from your initserver.sqf It will look something like that. mev addEventHandler ["GetIn", { params ["_vehicle", "_role", "_unit", "_turret"]; [_unit] execVM "healing.sqf" }]; -
getting the player inside a medical car healed
Mr H. replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Also your messages will be seen by everyone in blufor. And instead of using a trigger you should use a getIn eventhandler. -
getting the player inside a medical car healed
Mr H. replied to Purzel's topic in ARMA 3 - MISSION EDITING & SCRIPTING
First line should be _unit = _this select 0; -
problem ErrorMessage: File MRHHaloGear\cfghpp\cfgvehicles.hpp, line 77: /cfgVehicles/: ';' encountered instead of '{'
Mr H. replied to The Boogaloo Stick's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
The file you posted is not from the original mod. You should use the original version where there are no such errors 😉- 5 replies
-
- cfgvehicles.hpp
- encountered
-
(and 1 more)
Tagged with:
-
The "ace_uncounscious" event doesn't work like that addEventHandler only works with arma 3 vanilla events. Ace events use Cba event system
-
Pass local variable in displayAddEventHandler
Mr H. replied to Grenadier ITF's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Target has to be defined within the scope of your event handler action. You can store/retrieve it in missionnamespace for example. It depends on what type of data you are trying to pass. -
@GEORGE FLOROS GR for the record these are also visible if you paste in visual studio code and seem most common when code is posted from a phone. @Beans135 btw pie_helmet in your weapons array should be between ""
-
When copying/pasting from this forum some invisible characters are sometimes created. Just rewrite the code by hand.
-
class CfgPatches { class TIOW_Tau_Headgear { weapons [] = {Pie_helmet}; requiredVersion = 0.1; requiredAddons [] = {"A3_characters_F}; }; };