Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Sitting on a chair

  1. #1

    Sitting on a chair

    Hi all guys. I would like to create a mission where an AI soldier will sit on a chair. plz help me....

  2. #2
    I don't know if the chair is in OA too, but in A2 there is "FoldChair_with_Cargo". You can use this chair like a vehicle, order the AI to getIn and he will sit there.

    Otherwise, you're bound to make use of some sitting animation and attaching the soldier to the chair...

  3. #3
    This does not work. I really need a chair in OA!!

    EDIT: I found a chair but I am unable to get an NPC to sit on the chair.

    Chair name is "Land_Chair_EP1"

    This is as close as I can get.

    http://img267.imageshack.us/img267/6...1621023011.jpg
    Last edited by Toasticuss; Jul 17 2010 at 01:55.
    [OA][CO-OP/SP] Operation Black Thunder - 100% Complete

    [OA][SP] Operation Iron Fury - 100% Complete

    [CO][CO-OP - MP] Operation Cyclone (Utes) - 60% Complete - Needing multiplayer testers, please private message me if interested..

    Taking mission suggestions.

  4. #4
    try setDir to get him facing the other way?

  5. #5
    Quote Originally Posted by anfiach View Post
    try setDir to get him facing the other way?
    Thanks hes almost there.

    Now it looks like this - http://img28.imageshack.us/img28/530...1621100343.jpg

    Should I just backing up one of the axies?

    Also I have an animation loop but it keeps being interrupted when I come near him. So he lays down. Anyway to prevent that?

    UPDATE: Ugh, just changing the X axis digit by 1 will make him go way back like this

    http://img84.imageshack.us/img84/242...1621153229.jpg

    I am spawning the chair with a trigger and using the exact same coordinates as the NPC so it should be perfectly aligned right? Is this a game engine fault?

    Trigger activation -

    myChair = "Land_Chair_EP1" createVehicle getPos player;mychair setPos [4133.93,4137.94,0.00145721];"

    NPC init = "warlord1 setBehaviour "careless";anim2 = [this,"sitRfl_R_BidleLoopTest",true,false] execVM "scripts\animLoop.sqf";warlord1 allowFleeing 0;warlord1 disableAI "MOVE";warlord1 disableAI "AUTOTARGET";this disableAI "TARGET";warlord1 setPos [4133.93,4137.94,0.00145721];warlord1 setDir 360"
    Last edited by Toasticuss; Jul 17 2010 at 02:13.

  6. #6
    I can't help you with the animation loop but when changing the Axis you can do increments smaller than 1 for example 0.1 or 0.01

  7. #7
    Quote Originally Posted by anfiach View Post
    I can't help you with the animation loop but when changing the Axis you can do increments smaller than 1 for example 0.1 or 0.01
    Yeah the X is currently at 4133.93, just trying to change the 93 to something else will make him jump a lot.

  8. #8
    I don't have OA yet so I don't know if there may be another chair type that will work better.

  9. #9
    Quote Originally Posted by anfiach View Post
    I don't have OA yet so I don't know if there may be another chair type that will work better.
    This is all thats posted on ArmA Holic so far.....

    http://www.armatechsquad.com/ArmA2Cl...cts/furniture/

  10. #10
    First Sergeant
    Join Date
    Jan 27 2009
    Location
    Baltimore, Maryland(U.S.)
    Posts
    887
    ummm..i got the folding chair and table in OA..and i thought at first its because i had A2(duh), but i removed A2 cmpletly and i still have the folding chair and table! but i still would like to know how to get the AI sit in a chair!
    "Respect is the key to life... with out it we have nothing!"

    Computer Specs:
    =============
    Dell Studio XPS 8000
    Windows 7 Home Premium, 64-bit
    Intel(R) Core(TM) i7 CPU - 860 @2.80GHz 2.79 GHz
    Nvidia Geforce GTX 460
    DirectX® Version 11.0

Page 1 of 3 123 LastLast

Posting Permissions

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