Home   Help Search Login Register  

Author Topic: How to create a heat shell  (Read 592 times)

0 Members and 1 Guest are viewing this topic.

Putin

  • Guest
How to create a heat shell
« on: 18 Aug 2003, 18:06:25 »
Hi there.
I know how to create a hert 120 shell, but how can I create it like 2m infront and 1 m to the left of the player.
To get a nice war feeling.

mikeb

  • Guest
Re:How to create a heat shell
« Reply #1 on: 18 Aug 2003, 19:32:50 »
boom = "heat105" camcreate [(getpos player select 0) + 2, (getpos player select 1) + 1, getpos player select 2]

this will create (I think) a heat round 2 metres along the x axis from the player and 1 metre on the y axis.

however, a heat round this distance away is most likely to blow the player apart. instaed, if it's for effect only, use a handgrenade ("grenade").  also if you place it slightly underground (the z axis), then the exlplosion doesn't spread as much but you still get the explosive effect (try a couple of metres underground)

EDIT: of course if it's a heat 120 round use "HEAT120". Forced to edit as i know someone will be pedantic and point that out!!!
« Last Edit: 18 Aug 2003, 19:33:39 by mikeb »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to create a heat shell
« Reply #2 on: 18 Aug 2003, 21:35:00 »
If you want to get explode in a particular place with reference to the direction the player is facing, use getDir and some trigonometry.
Plenty of reviewed ArmA missions for you to play

Putin

  • Guest
Re:How to create a heat shell
« Reply #3 on: 18 Aug 2003, 21:49:53 »
Quote
use getDir and some trigonometry

 ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to create a heat shell
« Reply #4 on: 18 Aug 2003, 23:27:09 »
getDir returns the direction in which the object is facing.      getPos returns the position of the object.      The OFP language supports trig functions like sin, cos and tan.

If you're not familiar with trigonometry either ignore the whole post and forget I mentioned it, or get hold of a decent basic mathematics textbook.  It's not difficult.
Plenty of reviewed ArmA missions for you to play

Putin

  • Guest
Re:How to create a heat shell
« Reply #5 on: 18 Aug 2003, 23:33:39 »
I know cos, tan and sin, but I don`t know how to use it to create the bomb where I want it to be.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:How to create a heat shell
« Reply #6 on: 19 Aug 2003, 02:29:22 »
Try the line:

boom = "HEAT120" createvehicle [(getpos unit select 0) + (2 * sin (getdir unit + 300)), (getpos unit select 1) + (2 * cos (getdir unit + 300)), 0]

The number in bold (2) is the distance from the unit. The underlined number (300) is the angle added to the heading of the unit... so 300 degrees to the right is also 60 degrees to the left ;)

I've made a couple of posts on this in more detail... a search should be able to dig them up

Putin

  • Guest
Re:How to create a heat shell
« Reply #7 on: 20 Aug 2003, 01:54:46 »
Thank you very much. I`ll try that right away.