Home   Help Search Login Register  

Author Topic: Building animation  (Read 2693 times)

0 Members and 1 Guest are viewing this topic.

Offline SAS4Life

  • Members
  • *
  • Sas4life
Building animation
« on: 30 Jun 2009, 23:06:55 »
Hi folks

having a bit of trouble with an island gate can anyone give me some advice? I was the gate in Grid reference 037,093 to open on Chernarus. The id for the gate it 998853 i just need the animation name for it.

Cheers

Offline Supergrunt

  • Members
  • *
Re: Building animation
« Reply #1 on: 25 Jul 2010, 14:03:54 »
i like to know the same thing

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Building animation
« Reply #2 on: 25 Jul 2010, 16:09:42 »
No gate with such object ID exists, that's a part of a wall. :dunno:

Is this the double gates for accessing the Radio mast?
If so, the right one opens with (position player nearestObject 998900) animate ["DoorR", 1]; and the left one with (position player nearestObject 998879) animate ["DoorL", 1];

If the player is far away from those gates place a game logic near the gates and use it instead of player..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Building animation
« Reply #3 on: 26 Jul 2010, 17:03:07 »
Quote
If the player is far away from those gates place a game logic near the gates and use it instead of player.

Does the engine fail to recognize nearestObject if the player (or another reference unit) is to far away from the object in question?
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Building animation
« Reply #4 on: 26 Jul 2010, 17:07:07 »
No, but it might freeze the game for a moment if the player is so far away from the object that it's not "streamed up" by the engine.

I guess the freeze (and I think it's lenght depends on your PC) happens because the game has to search and "stream up" the object before it can manipulate it. :dunno:

EDIT:
Now to think of it, dunno why using the gamelogic would help..
So don't quote me on this. :P

But I do remember reading somewhere (here I guess) that such way would be better the longer the distance from the player to the object is. It might be that it has to do with how many objects have to be scanned for their IDs to reach the desired one, in which case using gamelogic near the object makes sense.
« Last Edit: 26 Jul 2010, 17:17:29 by h- »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Building animation
« Reply #5 on: 26 Jul 2010, 19:01:50 »
Okay, thanks. I was just curious. Didn't mean to hijack the thread.
OFPEC | Intel Depot
RETARDED Ooops... Retired!