Home   Help Search Login Register  

Author Topic: Laptop {geo LOD problem}  (Read 1842 times)

0 Members and 1 Guest are viewing this topic.

SH@dow 113

  • Guest
Laptop {geo LOD problem}
« on: 22 Jul 2004, 14:44:55 »
As the title ses, im making a laptop (that actually is finished). But i got 1 problem, i keep walking true it, onley walking cause i can shoot it to hell and its broken  :P. I tried everything, from making an exact copie to just a box from 200 kg mass around it. Can anyone help pls :-[.

Thx in advance :cheers:


Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Laptop {geo LOD problem}
« Reply #1 on: 22 Jul 2004, 15:12:29 »
In ofp geo LODs require named selections

So: Your geo lod must be built up from one or more cubes (shape is free, but don't make it too complicated or it won't work)

Then name every part in the GEO LOD like: component01 the second one component02 and so on...

If you didn't understand, let me know...

SH@dow 113

  • Guest
Re:Laptop {geo LOD problem}
« Reply #2 on: 22 Jul 2004, 15:22:01 »
oh, i do understand  :P, i totally forgot about them  :-[. So can i call 1 cube around the laptop component 1?

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Laptop {geo LOD problem}
« Reply #3 on: 22 Jul 2004, 15:23:12 »
Yapp! As far as I know ;) I hope this helped!

SH@dow 113

  • Guest
Re:Laptop {geo LOD problem}
« Reply #4 on: 22 Jul 2004, 15:25:55 »
it did  ;D, manny thx ;)

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Laptop {geo LOD problem}
« Reply #5 on: 22 Jul 2004, 15:26:54 »
You're welcome! ;)

SH@dow 113

  • Guest
Re:Laptop {geo LOD problem}
« Reply #6 on: 22 Jul 2004, 15:49:09 »
k now that problem is fixed i got another question. What line do i put in the config.cpp to let the open/close laptop action disapere after the laptop is destroyed?

thx in advance :cheers:

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Laptop {geo LOD problem}
« Reply #7 on: 22 Jul 2004, 15:52:29 »
The action will be automatically deleted if you destroy the object... I hope I understood it right.... ;)

SH@dow 113

  • Guest
Re:Laptop {geo LOD problem}
« Reply #8 on: 22 Jul 2004, 15:59:25 »
nope, the action isnt deleted when the object is destroyed.
Its still in the actionmenu, but offcourse u dont c the screen go open/close again :P.

Offline ScouseJedi

  • Members
  • *
Re:Laptop {geo LOD problem}
« Reply #9 on: 22 Jul 2004, 19:58:30 »
The components in the GeoLOD need to be at least 0.5m thick and have mass so that could be another source of problems.

In the config when you define the useraction there should be something like..

condition=....

(This is from the top of my head as this isn't my thing at all)

condition=this isAlive;

or something like that - if the unit is destroyed then the useraction will not appear. You might need to check out the comref or ask a scripter what the condition would be but this is where you need to put it
'The truth is a beautiful and terrible thing, and should therefore be treated with great caution.'
Albus Dumbledore

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Laptop {geo LOD problem}
« Reply #10 on: 23 Jul 2004, 07:01:17 »
Jedi is quite right, exept that you write in the condition field:

Condition="alive _this select 0"; In configs, you don't use this, you use _this select 0 :P

I hope this helps! ;)

Offline ScouseJedi

  • Members
  • *
Re:Laptop {geo LOD problem}
« Reply #11 on: 23 Jul 2004, 21:23:30 »
I did refer to 'proper' code and Bratty uses 'this' in his tow script..

Code: [Select]
                     class pakuhook
                 {
                  displayName="UnHook Trailer";
                  position="hitch";
                  radius=4
                  condition="this animationphase ""stand_anim"" != 0 and speed this == 0";
//


Now, Im not a coder but I think that the global 'this' might be required for MP - but don't quote me on that

:)
'The truth is a beautiful and terrible thing, and should therefore be treated with great caution.'
Albus Dumbledore

SH@dow 113

  • Guest
Re:Laptop {geo LOD problem}
« Reply #12 on: 30 Jul 2004, 12:39:20 »
thx all ;D, srry for the late reply but i was gone for a week ;)