Home   Help Search Login Register  

Author Topic: Interaction with objects..  (Read 590 times)

0 Members and 1 Guest are viewing this topic.

Offline SpaceMace

  • Members
  • *
  • God d**n the torpedoes...
Interaction with objects..
« on: 09 Feb 2003, 14:59:44 »
Just got into this editing thing and i have a few questions...

How do you make characters interact with objects i.e sit on a chair, talking on the phone etc.

And how do make objects interact with other objects like having a bottle on a table an so forth.

I have scanned trough most of the tutorials, but have yet to find any help dealing with these issues.
So I turn to you guys. :)

Thankful for any help.

Do you need to tweak the objects z-variable in the description.ext-file or something?

Please help.

« Last Edit: 09 Feb 2003, 23:24:27 by SpaceMace »

Silver Fox

  • Guest
Re:Interaction with objects..
« Reply #1 on: 11 Feb 2003, 10:59:46 »
Welcome!

The first thing that i recommend you do is download one of these below, then read through it and try to get to grips with things. It should help you ALOT!

Official Command Reference

Official Command Reference (Microsoft Word)

Unofficial Command Reference

Hope this helps
                        Silver ;D

Offline SpaceMace

  • Members
  • *
  • God d**n the torpedoes...
Re:Interaction with objects..
« Reply #2 on: 11 Feb 2003, 11:36:29 »
Thanks.

This seems to be a job for the "setpos" command. Iam a right?
I try around some more, I guess.

(Later, after much frustration)
Well...
The setpos command didnt fix it.
I Cant find any refrence to this in the command refrence either.
It must be something really easy i have missed.
Still need help.
I know of the swicthmove command but the unit just sits in thin air beside the chair.
And my bottles keep being placed under the tables. Very annoying...
« Last Edit: 12 Feb 2003, 01:21:56 by SpaceMace »

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Interaction with objects..
« Reply #3 on: 13 Mar 2003, 09:07:32 »
SpaceMace,

If you want to do something like put a phone on a table, just pop this line in the phone's init field:

this setpos [getpos this select 0, getpos this select 1, HEIGHT]

replace height with the height you want the object to sit at. For stuff on tables usually 1 works. This will keep the object right where you put it in the editor, only it will move it up however many meters you want. Works for any object. Also, while units will fall if they are in the air with nothing under them; objects will hover in midair even if nothing is below it.

Hope this helps.
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!