Jump to content

Search the Community

Showing results for tags 'addmissioneventhandler'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Arma Reforger
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Green Sea
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Cam Lao Nam
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics
  • CREATEANDGENERATION's Intoduction
  • CREATEANDGENERATION's HAVEN EMPIRE (NEW CREATORS COMMUNITY)
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials
  • Photography club of Arma 3's Epic photos
  • Photography club of Arma 3's Team pics
  • Photography club of Arma 3's Vehicle pics
  • Photography club of Arma 3's Other
  • Spartan Gamers DayZ's Baneados del Servidor
  • Warriors Waging War's Vigor
  • Tales of the Republic's Republic News
  • Operazioni Arma Italia's CHI SIAMO
  • [GER] HUSKY-GAMING.CC / Roleplay at its best!'s Starte deine Reise noch heute!
  • empire brotherhood occult +2349082603448's empire money +2349082603448
  • NET88's Twitter
  • DayZ Italia's Lista Server
  • DayZ Italia's Forum Generale

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 2 results

  1. Hello, I thought the following script would remove all magazines from a soldier (be it a dynamically spawned AI or human player) upon getting killed but for reasons unknown to me nothing gets removed ever: _removeMagazinesFromAnyone = addMissionEventHandler ["EntityKilled", { params["_killed","_killer","_instigator"]; if (_killed isKindOf "CAManBase") then { (_this select 0) spawn { sleep 1; {_this removeMagazine _x} forEach magazines _this; }; }; }]; When testing the script with a mission on a dedicated server there's no script errors. What gives in this case? All in all I'm looking for a script that would remove everything* else from killed units except the containers (vest, backpack, uniform) they use to carry stuff. *though not necessarily main weapon since there's another script that makes picking one up not possible Edit: Solved by using in this case removeMagazineGlobal instead of just removeMagazine
  2. Hello Friends. I'm having a problem. I'm using the Killzone Kid script to stream drone images onto a screen. "(I made my adaptations)". On the dedicated server, everyone can view the drone images, but the camera only transmits the image at the point where it was attached, "cam attachTo [uav, [0,0,0]," PiP0_pos "]," (without the quotes) when the shooter's camera is moved, the camera does not move together. But, however, if I'm alone on the server, everything works perfectly. Below is the code I am using: Calls the addaction for the object in init.sqf [laptop1, ["<t color=""#33CCFF"">Ligar</t>", { { null = execVM "script\uav\not_init.sqf" } remoteExec [ "call" ,0,true]; }, nil , 10 , true , true , "" , "_this distance _target < 2"] ] remoteExec ["addaction",-2,true]; not_init.sqf [],{removeAllActions laptop1;}] remoteExec ["call",0,true]; if (!alive uav) then {["DRONE ABATIDO!"] remoteExec ["hint",0,true]; [[],{removeAllActions laptop1;}] remoteExec ["call",0,true]; [laptop1,[0,"img\MapaMundi.jpg"]] remoteExec ["setobjecttextureglobal",0,laptop1]; [monitor5,[0,"img\MapaMundi.jpg"]] remoteExec ["setobjecttextureglobal",0,monitor5]; }; [laptop1,[0,"img\MapaMundi.jpg"]] remoteExec ["setobjecttextureglobal",0,laptop1]; [monitor5,[0,"img\MapaMundi.jpg"]] remoteExec ["setobjecttextureglobal",0,monitor5]; [laptop1, ["<t color='#2bf000'>DRONE RECON</t>",{ { null = execVM "script\uav\drone1\drone1.sqf" } remoteExec [ "call" ,-2,true]; }, nil , 10 , false , true , "" , "_this distance _target < 3"]] remoteExec ["addaction",0,true]; publicVariable "laptop1"; publicVariable "monitor5"; drone1.sqf (The uav is placed in the editor) [[],{removeAllActions laptop1;}] remoteExec ["call",0,true]; [laptop1, ["<t color='#2bf000'>DESCONECTAR DRONE RECON</t>", { { null = execVM "script\uav\drone1\fechar.sqf" } remoteExec [ "call" ,-2,true]; }, nil , 10 , true , true , "" , "_this distance _target < 3"]] remoteExec ["addaction",0,true]; [laptop1, ["<t color='#2bf000'>USAR CAMERA RECON</t>",{player action ["SwitchToUAVGunner",uav]}, nil , 10 , true , true , "" , "_this distance _target < 3"]] remoteExec ["addaction",0,true]; [laptop1, ["<t color='#2bf000'>PILOTAR DRONE</t>",{player action ["SwitchToUAVDriver",uav]}, nil , 9 , true , true , "" , "_this distance _target < 3"]] remoteExec ["addaction",0,true]; [laptop1,[0, "#(argb,512,512,1)r2t(uavrtt,1)"]] remoteExec ["setobjecttextureglobal",0,true]; [monitor5,[0, "#(argb,512,512,1)r2t(uavrtt,1)"]] remoteExec ["setobjecttextureglobal",0,true]; publicVariable "monitor5"; publicVariable "laptop1"; // Criar a camera cam = "camera" camCreate [0,0,0]; cam cameraEffect ["external", "Front", "uavrtt"]; cam attachTo [uav, [0,0,0], "PiP0_pos"]; publicVariable "uav"; cam camSetFov 0.08; PublicVariable "cam"; // cam is private? "uavrtt" setPiPEffect [0]; publicVariable "uav"; addMissionEventHandler ["Draw3D", { _dir = (uav selectionPosition "PiP0_pos") vectorFromTo (uav selectionPosition "PiP0_dir"); cam setVectorDirAndUp [ _dir, _dir vectorCrossProduct [-(_dir select 1), _dir select 0, 0] ]; if (!alive uav) then {{nul = execVM "script\uav\not_init2.sqf" } remoteExec ["call",-2,true];}; The event handler addMissionEventHandler ["Draw3D", { _dir = (uav selectionPosition "PiP0_pos") vectorFromTo (uav selectionPosition "PiP0_dir"); cam setVectorDirAndUp [ _dir, _dir vectorCrossProduct [-(_dir select 1), _dir select 0, 0] ]; does not seem to work, does not update camera position. if addaction call the script locally to the player, only it will see the image and it works perfectly. I know that camcreate is local, so addaction calls the script on all players.
×