Welcome to Altis Life RPG

Register now to gain access to all of our features.
Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.


Note that you can now sign-in with your Steam account.


This message will be removed once you have signed in.

  • Announcements

    • AltisLifeRpg

      Opening Announcement   09/13/2016

      Opening Announcement We are happy to announce the official reopening of the community assistance forum Altis Life RPG (open source public property). Before going any further, let's go over the current situation. As you are already aware, the forum and the database of Altisliferpg.com had been hacked a few weeks ago. This unfortunate situation has touched many communities of Arma 3. The various databases were erased, and since they were under the responsibility of the previous administration, no backup was able to recover the lost data. This means that all the tedious work must be redone. This regrettable situation has led Tonic to transfer the responsibility of its administration to a new and neutral party. This party has as sole goal to reunite every community, as diverse as they are, together to perpetuate the development of our beloved mod AltisLifeRPG.  First of all, I think it is important to clarify our intentions. Foremost, we want to reassure you that we are not proclaiming being the owners of the previous versions of Altis Life (open source public property) in collaboration with BoGuu based on Tonic' codes. As you know, Boguu has been a major player in the most recent versions. Please note that this platform is and will always remain open to future developers such as Boguu that would like to elevate Altis Life RPG to the next level. By doing so, we take our role as an official reference platform very seriously in the eyes of the vast community of Altis Life RPG. We are ready to face this responsibility. We are aware that the content added by users could be provided by external sources or from the original website. If you see a tutorial that you've created on our platform where you are not credited as the author, please mention it immediately to the administration and we will promptly fix the situation. Please note that seeing the overwhelming amount of content added by the community, we will not proactively search other community assistance websites to validate if proper credits were given to the various authors. Instead, it will be the author's responsibility to be proactive in contacting the administration. Since the majority of the content found on other websites came originally from Altisliferpg.com, we encourage members joining us to share any content deemed pertinent coming from other platforms without forgetting to credit the authors.       Finally, to clarify the rumors circulating: - The forum was not scammed. It was transferred directly from Bryan 'Tonic' Boardwine to our administration. A domain cannot be scammed. - The forum was transferred as an independent entity which has as a sole mission to perpetuate the forum and not let it die out.       Altisliferpg.com Regards, the Administration.       Feel free to join us on Discord in the Altis Life RPG Community section of the forum.   And of course if you have any question, feel free to message us here.
    • Rozo

      Donations   09/18/2016

      Hello,
        We've added a donation block on the right side. All of those donation goes directly to the developer of Altis Life mod ( currently BoGuu ). None of that money is used to maintain the forum. In the future we might add a donation button to support the forum, but for now we want to encourage the developer because they went through a lot. To discuss this topic - Here
    • Shakir Darwish

      IS YOUR SERVER BROKEN SINCE 1.64 UPDATE?   09/22/2016

      If your server is broken since 1.64 go check this link thanks. https://github.com/AsYetUntitled/Framework/issues/104
    • Rozo

      Sad Day   01/04/2017

      Good evening community of Altis Life RPG, Today was a sad day. We learned the hard way that one of the helper was using his status and visibility on the forum to do things i wouldn't imagine.  We were warned about this user in the beginning, we talked about his behavior and he said that they were things of the past. We were fooled.
      Unfortunately, he fooled other community members by selling stolen content and impersonating his role as a developer in another community. Here's a remember of one of the rules on our forum, No selling scripts, snippets, or services.   So if anyone come across someone who's selling his services, scripts or whatever, Report them. Especially if it's coming from an Helper, Mod, Admin. No one in the staff should ask for money, we already mention this when we reopened the forum and that rule is here to stay.

      We can't be sorry enough for what happen here, for any harm it as caused among other communities, for money that shouldn't been spent and we truly hope this doesn't happen again.

      As for the user in question, he is now banned from our forum and discord and we wish to never cross his path again.
        If there's anything we can do hit us on Discord or send a message to an admin.
      Thanks, Rozo.
TulparHAN

Sandalye Oturma - Chair Sit down Script

51 posts in this topic

Bu Script sandalyeler üzerine kod kullanmadan oturmanızı sağlayacaktır..

This Script will allow you to sit on chairs without using code.

TR>Script klasörünüzün içerisine sitdown.sqf ve standup.sqf isimli SQF dosyanı açıp kodları yerleştiriniz.

EN>Add 2 SQF files named sitdown.sqf and Standup.sqf to the script folder.

1.sitdown.sqf

#include "..\..\script_macros.hpp"
/*
	File: sitdown.sqf
	Author: John "Paratus" VanderZwet
	
	Description:
	Sit in a chair!
*/

private ["_chair","_unit","_dir","_z"];

_chair = _this select 0; 
_unit = _this select 1;

if (!isNull life_sitting) exitWith { hint "Sen zaten oturuyorsun!" };
if (vehicle _unit != _unit) exitWith { hint "Sen zaten buraya oturuyorsun!!" };
if (_unit distance _chair > 4) exitWith { hint "Umarim ayaklariniz bu kadar uzun degildir?" };
if (_unit getVariable ["restrained",false]) exitWith {};
if (_unit getVariable ["isTazed",false]) exitWith {};

if (!isNull (_chair getVariable ["sitting", objNull])) exitWith { hint "Birinin ustune oturmayi mi dusunuyorsunuz?!"; };

_dir = switch (typeOf _chair) do
{
	case "Land_ChairPlastic_F": { 270 };
	case "Land_CampingChair_V1_F": { 180 };
	case "Land_CampingChair_V2_F": { 180 };
	case "Land_ChairWood_F": { 180 };
	case "Land_OfficeChair_01_F": { 180 };
	case "Land_Bench_F": { 90 };
	
	default { 180 };
};

_z = switch (typeOf _chair) do
{
	default { 0 };
};

_posATL = getPosATL _chair;
_obj = "Land_ClutterCutter_small_F" createVehicle (_posATL);
_obj setPosATL (_posATL);
_obj setDir ((direction _chair) - _dir);
_obj setVariable ["idleTime", time, true];
_unit attachTo [_obj,[0,0,_z]];
life_sitting = _obj;
_chair setVariable ["sitting", _unit, true];

[_unit,"Crew","switch",true] remoteExecCall ["life_fnc_animSync",RCLIENT];
_action = _unit addAction ["<t color='#B45F04'>Otur</t>","TulparHAN\scripts\standup.sqf"];

waitUntil { isNull life_sitting || !(alive _unit) || player distance (getPos _chair) > 2 };

_unit removeAction _action;
life_sitting = objNull;
_chair setVariable ["sitting", nil, true];
if (isNull attachedTo _unit) then
{
	if (attachedTo _unit == _obj) then { detach _unit; deleteVehicle _obj; };
};

2.standup.sqf

#include "..\..\script_macros.hpp"
/*
	File: standup.sqf
	Author: John "Paratus" VanderZwet
	Description:
	Stand up from chair
*/

detach player;
[player,"","switch",true] remoteExecCall ["life_fnc_animSync",RCLIENT];
if (!isNull life_sitting) then { deleteVehicle life_sitting; };
life_sitting = objNull;

_pos = getPosASL player;
_dir = getDir player;
player setPosASL [(_pos select 0) + (0.5 * sin(_dir)), (_pos select 1) + (0.5 * cos(_dir)), _pos select 2];

3.TR>Altis_Life.Altis klasörü içerisinde init.sqf içerisine bu kodu ekleyiniz.

  EN> In the Altis_Life.altis folder, add this code to init.sqf.

MAC_fnc_switchMove = {
    private["_object","_anim"];
    _object = _this select 0;
    _anim = _this select 1;

    _object switchMove _anim;
    
};

4.TR>Core/functions/fn_KeyHandler.sqf içerisine sandalyeden kalkmanızı sağlayacak olan kodları ekleyiniz.This KEY "W"

  Bu satırı kendinize göre düzenleyiniz. "[] execVM "tulparhan\script\standup.sqf";"

  EN>Core/Functions/fn_Keyhandler.sqf Add the codes that will provide you with the upgrade from the chair. This KEY "W"

Arrange this line for yourself. "[] execVM "tulparhan\script\standup.sqf";"

    //Oturma Scripti ileri hareket ile Yerinden Kalkmak
    	if (_code in (actionKeys "MoveForward")) then
	{
		if (!isNull life_sitting) then
		{
			[] execVM "tulparhan\script\standup.sqf";
			_handled = true;
		};
	};

5.TR> core/fn_setupActions.sqf dosyasını açıp West,Civillian,independent içerisine bu kodları ekleyiniz.

Bu Satırı kendinize göre düzenleyiniz. "execVM "tulparhan\script\sitdown.sqf""

   EN> core/fn_setupactions.sqf Open this file and add these codes to West, Civilian, independent.

Arrange this line for yourself. "execVM "tulparhan\script\sitdown.sqf""

				//oturma
        life_actions pushBack (player addAction["<t color='#0099FF'>Otur</t>",{[cursorObject,player] execVM "tulparhan\script\sitdown.sqf"},true,1,true,true,"""",'player distance cursorObject < 3 && {([str cursorObject,"bench"] call KRON_StrInStr || [str cursorObject,"chair"] call KRON_StrInStr)} ']);
  

 

Have a nice day

Share this post


Link to post
Share on other sites
18 minutes ago, Hyper4u.'<3 said:

Benim için çalışmıyor

How do you get an error?

  Edit the script paths according to your own.

It works fine with Altislife 4.4 and 5.0.

Share this post


Link to post
Share on other sites
Just now, TulparHAN said:

How do you get an error?

  Edit the script paths according to your own.

It works fine with Altislife 4.4 and 5.0.

Im not getting any errors in my rpt logs, 

And i have change all the paths,

I get the "Sit Down" When i scroll at a chair but nothing happends

Share this post


Link to post
Share on other sites
1 minute ago, Hyper4u.'<3 said:

Im my rpt günlükleri herhangi bir hata alıyorum, 

Ve tüm yolları değiştirdim.

"Otur" u alırım Bir sandalyede gezinirken hiçbir şey olmaz

Did you change fn_setupaction?

I will check the script again.

Share this post


Link to post
Share on other sites
33 minutes ago, ToxicRageTv said:

Onun senaryosu olmadığından oldukça eminim. Sadece yeniden yayınladı.

Will you test that scenario?

Share this post


Link to post
Share on other sites
21 minutes ago, Bastien Sins | Wolf said:

Ben de bir problemim var.

Oturabilirim, fakat,
dayanamıyorum ... RPT'de herhangi bir ihbarn var ve hiçbir yardım istemiyorum ...
 

Use the W key to get up.

Share this post


Link to post
Share on other sites

The animation does not appear to work - the player on activating the sit script moves in front of the chair...does a little jump and then stands in front of the chair

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now