OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ace Productions on 09 Jun 2005, 22:29:11

Title: Gamelogic positioning problems
Post by: Ace Productions on 09 Jun 2005, 22:29:11
Hi people,

I'm facing a strange problem. I'm trying to create an explosion about 2m above ground using a gamelogic called Target, but the explosion always occurs on the ground.

Effort 1:

Target SetPos [6206.9,6098.3,2]
~0
_shell1B = "Shell73" CamCreate GetPos Target
~0

Effort 2:

Target SetPos [6153,6078.4,5]
~0
_shell2A = "Shell73" CamCreate [GetPos Target Select 0,GetPos Target Select 1,2]
~0

Effort 3:

Target SetPos [6153,6078.4,5]
~0
_shell2A = "Shell73" CamCreate [GetPos Target Select 0,GetPos Target Select 1,(GetPos Target Select 2)+2]
~0

No luck in any case!!! Can anyone please help?  :-[
Title: Re:Gamelogic positioning problems
Post by: Planck on 09 Jun 2005, 22:41:37
I'm not sure if you can place gamelogics anywhere but on the ground.

At least I think they default to ground or sea level.

But I could be wrong   ::)


Planck
Title: Re:Gamelogic positioning problems
Post by: Blanco on 09 Jun 2005, 22:43:01
Hi,

You have to create two explosions at the same spot if you want them to explode in mid-air, otherwise the explosion occurs on the ground.




Title: Re:Gamelogic positioning problems
Post by: THobson on 09 Jun 2005, 23:15:06
Game logics can be placed anywhere

Camcreated shells fall until they hit something then they explode.  Hence Blanco's solution, create two in the same place at the same time - they will therefore hit each other and explode.

Planck:  it is triggers that drop to sealevel if you give them a 'select 2' value of 0
Title: Re:Gamelogic positioning problems
Post by: XCess on 10 Jun 2005, 00:36:50
You can always use setDammage on the shells... tis wat i always did.. only one object then.
Title: Re:Gamelogic positioning problems
Post by: Planck on 10 Jun 2005, 00:41:48
Quote
it is triggers that drop to sealevel if you give them a 'select 2' value of 0

Thanks THobson, I got confused in my old age.   ;D


Planck
Title: Re:Gamelogic positioning problems
Post by: Ace Productions on 10 Jun 2005, 05:51:13
Thanks a lot guys for your replies.

I'll give it a try and solve the topic if everything it's ok.

Thanks again.  :)