Home   Help Search Login Register  

Author Topic: A simple task  (Read 962 times)

0 Members and 1 Guest are viewing this topic.

Offline Martin Kuka

  • Members
  • *
A simple task
« on: 11 Aug 2006, 15:36:59 »
I know it was displayed somewhere around here already, but I don`t have enough time to search for it.
So I have to ask...I need to put a radio up on the table.
I do remember that a command for that was "setpos" or something like that.
But only thing I have, is that I have a table and a radio under...
Thanx ;D
Lets get rocked

Offline rado1265

  • Members
  • *
Re: A simple task
« Reply #1 on: 11 Aug 2006, 16:06:43 »
In Init field of your radio put

Code: [Select]
this setPos [getPos this select 0, getPos this select 1, (getPos this select 2) + 0.965]
The last number (0.965) is the height of the object, and it's already set on the 'table height', but if not, then adjust it yourself a bit.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: A simple task
« Reply #2 on: 11 Aug 2006, 16:07:15 »
radio1 setPos [(getPos table1 select 0) + a, (getPos table1 select 1) + b, x]

where x is the height you need.   Experiment.   Syntax not guaranteed.    a and b are offsets so the radio is in the right place relative to the table.    Use setDir to rotate the radio if required.   a,b and x are numbers in metres.

Edit:  rats, too slow ...
Plenty of reviewed ArmA missions for you to play

Offline Martin Kuka

  • Members
  • *
Re: A simple task
« Reply #3 on: 11 Aug 2006, 16:23:29 »
Got it ;D Thanx guys
Lets get rocked