Results 1 to 6 of 6

Thread: Remove bodybag for all players.

  1. #1

    Remove bodybag for all players.

    I was working on a script where if a player dies, a bodybag is created at their death position. I added an action into a respawn.sqf which is

    _bodybag = "Body" createvehicle (_deathpos); _bodybag setdir (random 360);
    _bodybag addaction ["Remove Bodybag", "bodybag.sqf"];

    It works well, but only the player who died can remove it. How do I make this addaction work for all players for the bodybag?

    So far, people can only remove their own bodybag. I want it so anyone can remove anyone's bodybags.

  2. #2
    Gunnery Sergeant Mikie boy's Avatar
    Join Date
    Jun 20 2009
    Location
    United Kingdoom
    Posts
    472
    http://community.bistudio.com/wiki/M...ayer_framework

    easiest way - multiplayer framework - [nil,nil,rADDACTION, "Remove Bodybag","bodybag.sqf"] call RE - need function module on map.
    [FOCK] Mikie J

    Looking for New Players at Fockersteam
    http://fockers.moonfruit.com/

    A2/OA
    COOP Most Wanted - [Fockers] Most Wanted Co-x v07-09-2012
    Fock IED - http://www.armaholic.com/page.php?id...highlight=FOCK
    Fock Recruit/Group Management - http://www.armaholic.com/page.php?id=20580

    A3
    TvTCache Hunt - [FOCK]ers Cache Hunt TvT-x [ALPHA]
    Scripting Tutotial -http://www.armaholic.com/page.php?id=20465#comments
    Fock Recruit/Group Management - http://www.armaholic.com/page.php?id=19041

  3. #3
    Quote Originally Posted by Mikie boy View Post
    http://community.bistudio.com/wiki/M...ayer_framework

    easiest way - multiplayer framework - [nil,nil,rADDACTION, "Remove Bodybag","bodybag.sqf"] call RE - need function module on map.
    Ok, I put that line in the respawn code - it didn't work.
    I added a functions module to the map - still didnt work.
    I tried putting the code in the functions module - didnt work.

    :\

  4. #4
    Gunnery Sergeant Mikie boy's Avatar
    Join Date
    Jun 20 2009
    Location
    United Kingdoom
    Posts
    472
    my bad
    [nil,_bodybag ,rADDACTION, "Remove Bodybag","bodybag.sqf"] call RE;

    needed to add the addaction to the body bag -
    try that

  5. #5
    Code:
    	hidebody char;	
    	
    _bodybag = "Body" createvehicle (_deathpos); _bodybag setdir (random 360);
    	//Makes bodybag removeable
    [nil,_bodybag ,rADDACTION, "Remove Bodybag","bodybag.sqf"] call RE;

    I added the line to my respawn script. Above is a piece of it, and with the above line added, it still doesn't work. Now there's no action to select at all.

  6. #6
    Gunnery Sergeant Mikie boy's Avatar
    Join Date
    Jun 20 2009
    Location
    United Kingdoom
    Posts
    472
    _removebag = [nil,_bodybag, "PER", rADDACTION, "Remove Bodybag","bodybag.sqf"] call RE;

    try this the PER - makes it there for everyone and JIP.

Similar Threads

  1. Remove glasses from players face
    By excruciator in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 0
    Last Post: Feb 26 2012, 11:37
  2. Remove disconnected players from score board?
    By RogueTrooper in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 2
    Last Post: May 30 2011, 12:01
  3. - Is possible to remove this?.
    By wipman in forum ARMA 2 & OA - GENERAL
    Replies: 40
    Last Post: Oct 27 2010, 14:12
  4. For players, by players (Non profit)
    By cri74 in forum ARMA 2 & OA - MULTIPLAYER
    Replies: 10
    Last Post: Jan 1 2010, 17:33
  5. Is it possible to remove
    By in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 1
    Last Post: Apr 3 2003, 16:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •