Home   Help Search Login Register  

Author Topic: Creating Ojects at a Hight  (Read 616 times)

0 Members and 1 Guest are viewing this topic.

ChrisDrew

  • Guest
Creating Ojects at a Hight
« on: 03 Mar 2004, 21:18:28 »
I've been making a mission on operation flashpoint and need to make ojects at a hight can someone tell me how to do this. I've tryed checking the editors depot and couldn't find out how to do this.

Kaliyuga

  • Guest
Re:Creating Ojects at a Hight
« Reply #1 on: 03 Mar 2004, 21:25:08 »
if it's something you can place in the editor and you just need to lift it off the ground you can use this line in it's init line:

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

where x= meters off the ground

if you need to camcreate an object at a certain height..  

then I think you can work that code into your camcreate line somehow.. cause I remember being able to camcreate shells at certain heights..
:cheers:
« Last Edit: 03 Mar 2004, 21:37:05 by Kaliyuga »

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Creating Ojects at a Hight
« Reply #2 on: 03 Mar 2004, 21:28:39 »
You can set the height by putting this in the init line of the object/unit/whatever,

this setpos [(getpos this select 0), (getpos this select 1), + 6]

The underlined bit can be changed to a  -  for having things submerged into the ground. You don't need the + with having thigs up  ::), but I put it there just to differentiate.
« Last Edit: 03 Mar 2004, 21:30:50 by The-Architect »
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

ChrisDrew

  • Guest
Re:Creating Ojects at a Hight
« Reply #3 on: 03 Mar 2004, 21:29:53 »
i've started playing this game afew weeks ago and don't know what camcreate means

Kaliyuga

  • Guest
Re:Creating Ojects at a Hight
« Reply #4 on: 03 Mar 2004, 21:39:42 »
camcreate is a command that you can use with a trigger or init.sqs file that will create an object out of nowhere without having to place that object in the editor

something like .. if you wanted to create a tank shell at a certain spot.. say for instance directly under a guys feet it would look like this:

 bomb1="HEAT120" camcreate getpos dood

where dood is the guys name that the bomb will be created at

:toocool:

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Creating Ojects at a Hight
« Reply #5 on: 04 Mar 2004, 01:37:57 »
this setpos [(getpos this select 0), (getpos this select 1), + 6]

uhm...i thought OFP uses [x,y,z] coordinates to place object so your example would move the object along it's east/west angle.
Shouldn't it be:

this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +/-5]

so  this select 0 stands for north/south angle
this select 1 stands for the east/west angle
and this select 2 stands for the up/down angle

unsure about it but check it plz

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Creating Ojects at a Hight
« Reply #6 on: 04 Mar 2004, 01:42:36 »
Thats what was written.  Have you missed seeing the coma?

Select 0 = east / west
Select 1 = noth / south
Select 2 = up / down
« Last Edit: 04 Mar 2004, 01:44:41 by [icarus_uk] »

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Creating Ojects at a Hight
« Reply #7 on: 04 Mar 2004, 04:48:50 »
uhm...*cough*....ya...should have cleaned my glasses  ;)