Restriction checking if an object is within a location group

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.
Post Reply
User avatar
Denk
Posts: 902
Joined: Mon Feb 22, 2016 6:21 pm
Points: 346
Location: Hjørring, Denmark

Restriction checking if an object is within a location group

Post by Denk »

Using a restriction, I need to check if the position of a specific object is within a location group. Does anyone know if that is possible and if so how?
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
DazaKiwi
Posts: 835
Joined: Thu Oct 21, 2010 10:05 am
Points: 71
Location: New Zealand

Re: Restriction checking if an object is within a location g

Post by DazaKiwi »

What do you mean by 'position' of a specific object within a location group?
User avatar
Denk
Posts: 902
Joined: Mon Feb 22, 2016 6:21 pm
Points: 346
Location: Hjørring, Denmark

Re: Restriction checking if an object is within a location g

Post by Denk »

I guess I should have explained it better - Let's say a boat is in location 5. Then I want to check if location 5 is part of a location group. I tried something like:

'a boat' 'must' 'be within group' 'groupname'.

But because boat is an object, I only get a list of object groups, not location groups.
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
DazaKiwi
Posts: 835
Joined: Thu Oct 21, 2010 10:05 am
Points: 71
Location: New Zealand

Re: Restriction checking if an object is within a location g

Post by DazaKiwi »

Okay I found a way using param method and made a demo.
Attachments
LocGrpRestrictDemo_v1.taf
(15.14 KiB) Downloaded 56 times
User avatar
Denk
Posts: 902
Joined: Mon Feb 22, 2016 6:21 pm
Points: 346
Location: Hjørring, Denmark

Re: Restriction checking if an object is within a location g

Post by Denk »

That works great - thanks!
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
Post Reply