Jump to content
MacRae

Simple Sitting Script [Download Included]

Recommended Posts

Hey Everyone,

Here is my Simple Sitting Script:

http://i.imgur.com/qWBNRxM.jpg (272 kB)

1.Download the mod at the link at the bottom of the page.

2.Extract the Chair folder into your mission folder.

3.Create a file called init.sqf and add this into that file.

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

   _object switchMove _anim;

}; 

4.Place a Camping Chair on the map. (Found at Tents>Camping Chair)

5.Add this in the initialization:

this addAction ["<t color='#0099FF'>Sit Down</t>","Chair\sitdown.sqf"]

Now when you get in game, you will new get the option to sit down!

(You can change #0099FF in the Init script to change the colour of the the text in game!)

Download Link: GameFront

http://www.gamefront.com/files/23625426/MacRae%27s+Chair+Script.zip

Download Link: MediaFire

http://www.mediafire.com/download/w8b6g52kvjgzevi/MacRae%27s_Chair_Script.zip

Feedback will be appreciated!

Edited by MacRae
  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

Ahh right i see, Erm do you know a File sharing website that works for you that i can upload it to?

Share this post


Link to post
Share on other sites

mediafire.com is pretty quick and easy as long as you have adblock. :)

Share this post


Link to post
Share on other sites

okay, thanks guys ill upload it there and tell you when the link is updated!

Share this post


Link to post
Share on other sites

No problem man, What do you think of it anything i can improve on?

Share this post


Link to post
Share on other sites

Awesome, anything you can think of ill sort it out!

Share this post


Link to post
Share on other sites

hey

you can put your function :

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

   _object switchMove _anim;

in your sitdown .sqf just before this line :

[[_unit, "Crew"], "MAC_fnc_switchMove"] spawn BIS_fnc_MP; 

Share this post


Link to post
Share on other sites

But the code - switchMove is a local script,

so you need to add

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

   _object switchMove _anim; 

into the init.sqf so that everone in multiplayer can see the animation

Share this post


Link to post
Share on other sites

We have tryed it out and we ran into a small issue.

Ive applied it to alot of chairs, so dunno if a big amount of chairs will cause any issues.

So the problem.

Sometimes when people sit down, they sit fine on they're own screen but on my screen they are prone under the chair.

Is this something you have heard about before?

Does it have anything to do with the placement of the code in the init.sqf? (lower or higher in the file or something)

Hope you can help mate, its a nice script but if this keeps doing this we cannot use it :(

Ohh forgot to add ive got:

this allowDamage false;

In all chairs btw.

Also just tested something else, a relog fixes the issue.

Sorry, forgot to mention this happens unarmed, havent done it with weapons.

Edited by Byrgesen

Share this post


Link to post
Share on other sites

Hey man, Thankyou for the feedback,

At the moment im not sure why this is happening for you,

Because currently i have only used this script on the Camping chairs,

(Found at Tents>Camping Chair)

And i have tested the script with multiple people joining, and it has worked for me...

But i will try and fix your problem for you tonight,

Sorry this is happening to you!

Share this post


Link to post
Share on other sites

You know the old Strathian saying...

"Once you're in the chair you're staying there!"

Share this post


Link to post
Share on other sites

I dont... But I think I understand your meaning behind it lol

Share this post


Link to post
Share on other sites

Yeah you can get bak out of the chair once your in it KDK11

Share this post


Link to post
Share on other sites

I think al download this to see how you managed to do that then. I need a similar type thing for making AI be able to sit at side of helicopter then get back out/move back to normal seat

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×