Triggering a Region with an Actor

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Triggering a Region with an Actor

Postby Branan » Mon Jun 30, 2008 9:49 am

Is it possible to set up a region so that it is triggered when a physics object is pushed into it? The floor plates in Teledahn make me suspect that it is, though I don't quite have the know-how to disassemble Teledahn and see how it was made.
Image
Your friendly neighborhood shard admin
User avatar
Branan
Gehn Shard Admin
 
Posts: 694
Joined: Fri Nov 16, 2007 9:45 pm
Location: Portland, OR

Re: Triggering a Region with an Actor

Postby Branan » Mon Jun 30, 2008 10:55 am

Sorry about replying to my own post, but I've done some more research on how Cyan created the prison cells in Teledahn, and how it applies to me.

For each floor panel, there is a ptActivator and a ptResponder. The ptActivator is triggered... somehow. That's not in the Python code, so I'd have to pull open the Teledahn PRPs to find out. The ptResponder triggers the animations when changing between states (on and off).

For my purposes, the trigger areas don't need to be animated, so I can skip the ptResponder. I suspect the ptActivator can be created with LogicScripting.

So I guess my question is now: what's the logic script necessary to create a ptActivator that will trigger when a physics object enters, and preferably not when an avatar enters the area.
Image
Your friendly neighborhood shard admin
User avatar
Branan
Gehn Shard Admin
 
Posts: 694
Joined: Fri Nov 16, 2007 9:45 pm
Location: Portland, OR

Re: Triggering a Region with an Actor

Postby Jojon » Mon Jun 30, 2008 11:30 am

I haven't got your answers, but will pipe up anyway, because a) This is something I too will be needing and b) If I do, sometimes somebody who actually has a clue, will groan inwards and make a great post to correct my blather. :)

While the whole scripting thing and the logic structures are a complete mystery to me, so far, I think there are clues to be found in the "sitting mods" tutorial in the wiki. http://www.guildofwriters.com/wiki/SittingMods
Logic.modifiers.activators type:objectinvolume certainly sounds interesting - as for triggers, I surmise you'd need no further conditions and there might exist some "always" trigger - dunno. There was also a bit of talk about subworlds in one thread, with an example on how you could trigger subworld entry and exit, by entry and exit to- and from a region.

Hope this doesn't turn you in the wrong direction. :P
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Triggering a Region with an Actor

Postby Tsar Hoikas » Mon Jun 30, 2008 12:57 pm

plObjectInVolumeDetector is probably what you want.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia


Return to Building

Who is online

Users browsing this forum: No registered users and 3 guests