Areaportal, without a door?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Areaportal, without a door?

Post by Bjarne BZR »

I know how to use an area portal to optimize brush hiding in a map...

... but can it be used with the same effect when scripting a door ( or in this case: a hatch )? I tried, and it does not work. So is it possible to manually tell an areaportal to deactivate in the same way as a door would do when opening?
Admin .MAP Forums
Image
Head above heels.
rOger
Major
Posts: 290
Joined: Wed Feb 05, 2003 8:56 pm
Location: Sweden

Post by rOger »

Try to add openportal and closeportal. I had some problem with the hatch opening the portal and closing it correctly only the first few times i used the hatch, but that script was f***ed up badly so it will probably work for you.
Looking for a good game? Play GO the ancient asian game of strategy.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

On the hatch, or on the portal itself?

$my_areaportal openportal

or

$my_scripted_hatch openportal

?
Admin .MAP Forums
Image
Head above heels.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Bjarne BZR wrote:On the hatch, or on the portal itself?

$my_areaportal openportal

or

$my_scriptobject_hatch openportal

?
Tested it: worked like a charm! I take a bow...

btw: this is the syntax:

Code: Select all

$my_scriptobject_hatch openportal
Admin .MAP Forums
Image
Head above heels.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Do you use that once or every time the hatch opens ?
rOger
Major
Posts: 290
Joined: Wed Feb 05, 2003 8:56 pm
Location: Sweden

Post by rOger »

openportal when the hatch opens and closeportal when it closes.
Looking for a good game? Play GO the ancient asian game of strategy.
Post Reply