Home   Help Search Login Register  

Author Topic: Gettin High  (Read 538 times)

0 Members and 1 Guest are viewing this topic.

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Gettin High
« on: 04 May 2003, 17:24:53 »
Not really anything with the ol' pipe, but with ASL height and creating objects where the player is... I'm sure someone has stumbled into this:
You give the player the action to build a MG for instance in a rooftop. Now what this does is create the MG at ground level even when you try create it at [getPos player select 0, getPos player select 1, getPos player select 2]. OFP thinks whenever the players feet are touching anything, he's at ground level (0).

I tried to solve this with TakeOffTims aslheight script. It would give you some other value than 0. The problem is, now that I create the MG as follows:
Quote
_pos = getPos _unit
_dir = getDir _unit
? (local Server) : _shed = "ShedSmall" createVehicle [0,0,0]
_shed setDir (_dir + 225)

_H = [_unit] call getASLheight
_i = _H-2

#raiseloop
_shed setPos [(_pos select 0)+1*(sin _dir),(_pos select 1)+1*(cos _dir),_H]
I'm getting that shed always higher than I am. When at ground level, it's _H much higher. The same when I'm on a rooftop. The rooftop is the ground level then. Maybe if I'd create something in the basement (not crack) and compute the height difference  ;D naw...

I think I'm going way wrong here, I think even the tide affects the ASL...  :-X So how would I create anything on a rooftop?
« Last Edit: 04 May 2003, 17:25:27 by MI_Fred »
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.