Home   Help Search Login Register  

Author Topic: Really basic question  (Read 1017 times)

0 Members and 1 Guest are viewing this topic.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Really basic question
« on: 06 Nov 2004, 22:50:01 »
I thought I would venture into doing cut scenes.  I have a civilian.  I want them to be siting down from the start of the mission until I reach them.  Once I get close a cut scene will start during which they should stand up.

I can't even get to first base on this.  In the init field of the civilian I have tried various things none of which result making the civilian sit down.  A couple of things I have tried are:
this switchmove "OnChair"
this switchmove "FXStandUnivTable"

I have also tried diffenret effects eg
this switchmove "FXangel2"

These instructions seem to have no effect at all.

I must be missing something really simple.


Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Really basic question
« Reply #1 on: 06 Nov 2004, 23:54:56 »
For whatever reason, you cannot make units play animations from an init field. I have no idea why, but it sux. One solution is to make a one line script that you run in their init field:

[this, "anim"] exec "switchmove.sqs"

Switchmove.sqs:
Code: [Select]
(_this select 0) switchmove (_this select 1)
Another thing that MIGHT work is to put this in their init field:

Code: [Select]
this call {_this switchmove "XXX"}
I know I've tried that before, but I can't remember if it works or not...
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Gooner861

  • Guest
Re:Really basic question
« Reply #2 on: 07 Nov 2004, 00:23:05 »
I think one of Sui's missions has soldiers sittin on chairs, i dnt know what mission it is though.

Weneva i use animations in cutscenes, i write the code in my script for the cutscene. I never use the init line cos of wot General Barron said.


Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Really basic question
« Reply #3 on: 07 Nov 2004, 01:00:56 »
I do believe that the only chair that works for this is ChairX, I don't think the others work.


Planck
I know a little about a lot, and a lot about a little.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Really basic question
« Reply #4 on: 07 Nov 2004, 03:01:28 »
this switchmove effectStandSitDown will make him sitting on the ground with his legs crossed.

fxstandunivtable works on all chairs i thought... ???

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Really basic question
« Reply #5 on: 07 Nov 2004, 11:39:41 »
Thanks:

I tried the call approach.  It did not work.  I also found I needed to put a bit of a delay in the script before actioning the switchmove but otherwise the script work well.

« Last Edit: 07 Nov 2004, 11:40:57 by THobson »

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Really basic question
« Reply #6 on: 08 Nov 2004, 06:54:21 »
I think one of Sui's missions has soldiers sittin on chairs, i dnt know what mission it is though.

unit switchmove "onchair"

Is what I used to get the guys in chairx.
They don't necessarily need a chair, though they look pretty stupid if they're sitting in mid air ;)

I've seen it used so they're sitting on a weapons crate... looks quite natural.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Really basic question
« Reply #7 on: 08 Nov 2004, 21:41:33 »
I am using an steel bed.  Also looks natural