The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checking the position of entities
dragonlordsd Offline
Member

Posts: 112
Threads: 7
Joined: May 2011
Reputation: 0
#1
Checking the position of entities

I was working on a scenario, and I was wondering how you would go about creating a function that relied on items being within a certain area to be carried out.

The logic I'm looking for would work something like this:

When [Item] is used on [Entity]:

If [entity1] is in [scriptarea1]
if [entity2] is in [scriptarea2]
if [entity3] is in [script area3]
create [Itemkey] at [scriptarea4]

The idea is to get the player to perform like a summoning ritual or something.

I know how to create items, but I don't know how to make a function conditional on the position of an entity.

Any help would be appreciated

Here's a screen shot of the puzzle layout:

.jpg   2011-05-05_00002.jpg (Size: 183.12 KB / Downloads: 201)

.jpg   2011-05-05_00004.jpg (Size: 289.11 KB / Downloads: 195)
(This post was last modified: 05-05-2011, 09:48 PM by dragonlordsd.)
05-05-2011, 06:56 PM
Find


Messages In This Thread
Checking the position of entities - by dragonlordsd - 05-05-2011, 06:56 PM
RE: Checking the position of entities - by Acies - 05-05-2011, 08:46 PM
RE: Checking the position of entities - by Acies - 05-05-2011, 08:58 PM
RE: Checking the position of entities - by Apjjm - 05-05-2011, 09:18 PM
RE: Checking the position of entities - by Acies - 05-05-2011, 09:28 PM
RE: Checking the position of entities - by Acies - 05-05-2011, 09:59 PM
RE: Checking the position of entities - by Acies - 05-06-2011, 12:31 AM
RE: Checking the position of entities - by Apjjm - 05-06-2011, 02:33 AM
RE: Checking the position of entities - by Acies - 05-06-2011, 03:10 AM



Users browsing this thread: 3 Guest(s)