OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MajorHurt on 13 May 2008, 20:20:07

Title: Making a guard open a placed animated gate
Post by: MajorHurt on 13 May 2008, 20:20:07
Hello all,

This is probably a stupid question, but nothing I've found so far has helped.

I've been trying to figure out how to have a car approach a gate, and a guard appear to open and close the gate, allowing the truck through. The gate (Universal Objects/(OBJ) gate anim) isn't part of the map (CAT Central Afghanistan) and I've tried everything I can think of, but nothing seems to work. I don't know what specific animate command relates to this specific gate. I've tried "door1",1, etc.

Any suggestions.

Thanks,

MH
Title: Re: Making a guard open a placed animated gate
Post by: Mandoble on 13 May 2008, 20:51:27
You need to move the guard to the gate, then make it to watch at the gate and then use the animate command to open the gate. The guard will not open it by its own.
Title: Re: Making a guard open a placed animated gate
Post by: MajorHurt on 13 May 2008, 21:03:26
I know. I've tried that, but it hasn't worked. I named the gate "gate" and used a vehicle present trigger, with: gate animate ["doors1",1] in the On Activation box....

Still the truck comes up and stops. The guard walk over to the gate. But the gate doesn't open.

Again the gate I'm using is in the editor under Empty/Objects Universal/(OBJ)gate anim

Maybe it's the gate object itself. Maybe I'm using the wrong animate command for it?  :dunno:

Any help would be great appreciated.  :D
Title: Re: Making a guard open a placed animated gate
Post by: Gcfungus on 13 May 2008, 23:47:46
Firstly try looking for the correct animation, as it may not work otherwise (I'm not sure how to find it, you may need someone more experienced).

Also, if you cannot find an answer that way, may I suggest actually blacking out for a short time, deleteing (or moving) the closed gates away and replacing them with open ones (if there is in the addon, I'm not familiar with thast exact one).

Otherwise, there's little more I couldhelp you with

-=GC=-Fungus1999
Title: Re: Making a guard open a placed animated gate
Post by: MajorHurt on 14 May 2008, 00:12:51
Yeah, that's what I'm kind of figuring the problem is. I'm not sure what the correct animation is, and quite frankly I'm not even sure what mod set the gate came from.

If I could only figure out how find the correct animation for this particular gate, I think I'd be in business. In the meantime, I'll delete it and re-think my cutscene.

Thanks much.

If anyone else knows anything about the object Universal Objects/(OBJ)anim gate I'd appreciate it, as I'd really like to use it in my mission.

Cheers,
MH
Title: Re: Making a guard open a placed animated gate
Post by: MajorHurt on 14 May 2008, 05:30:06
I figured it out!  :D

The name of the animation for this object is "arm".

Onward and upward!  :good:
Title: Re: Making a guard open a placed animated gate
Post by: h- on 14 May 2008, 18:08:13
MajorHurt, welcome to OFPEC :welcome:

Good thing you got this sorted out. :)

However, as per our posting guidelines (http://www.ofpec.com/index.php?action=read_on&id=122):
- please do not quote the entire previous post you are replying to, no need to do that
- do not post consecutively, if you have something to add after a short period of time modify your post instead of 'replying to yourself'
Title: Re: Making a guard open a placed animated gate
Post by: MajorHurt on 14 May 2008, 22:29:49
Thanks! Good to be here.  :D

Sorry about my posting transgressions. Won't happen again.

Cheers,

MH