Forum Archive. A read-only snapshot of the Warfare Incorporated forums (2003–2020), preserved for historical purposes.  ·  warfareincorporated.com
Warfare Incorporated Forum

collision detection
Author Message
LawrenceA
Administrator


Joined: 15 Feb 2010
Posts: 1135
Location: New Zealand
 Post Posted: Fri Sep 17, 2010 2:46 am  Post subject: collision detection

is there a way to detect when two units are touching?
i.e. when the location of unit x is 3,4 and unit y is at 3,5 the collision detection condition would be met
maybe there would be some trigger to insert unit location into a pvar. and maybe a way to compare pvars based on their quantities as some sorta condition
galm
ForeRunner


Joined: 18 Oct 2009
Posts: 2382
Location: New York
 Post Posted: Sun Sep 19, 2010 8:21 pm  

For what?
scottlu
WI Founder


Joined: 15 Aug 2003
Posts: 1773
 Post Posted: Sun Sep 19, 2010 9:07 pm  

If it's a fixed location you can use an area to do that.
N@TE
Chief Administrator Emeritus


Joined: 06 Dec 2009
Posts: 985
Location: Colorado
 Post Posted: Mon Sep 20, 2010 7:54 pm  Post subject: Discovers Side

If you want something to happen the first time tow sides meet, you can use the Discovers Side condition. I.e. you could say "Side1 discovers Side2" and show an alert, or whatever action is of your interest.
LawrenceFA
Established Forum User


Joined: 29 Nov 2009
Posts: 84
Location: New Zealand
 Post Posted: Tue Sep 21, 2010 2:47 am  

isn't the discoveres side condition met when the other side enteres the current sides view? so the other unit could be visable but nowhere near the current sides unit. i'm looking to make a pacman style map and since the map is big it could be difficult to fit all the area triggers in.
galm
ForeRunner


Joined: 18 Oct 2009
Posts: 2382
Location: New York
 Post Posted: Thu Sep 23, 2010 12:59 pm  

Mustanggt made two pacman maps already law. Don't rip him off.
trineroks
Chief Administrator


Joined: 16 Oct 2009
Posts: 1770
Location: Southern Cali (UCLA)
 Post Posted: Thu Sep 23, 2010 5:48 pm  

galm wrote:
Mustanggt made two pacman maps already law. Don't rip him off.
...what does that have to do here?
galm
ForeRunner


Joined: 18 Oct 2009
Posts: 2382
Location: New York
 Post Posted: Thu Sep 23, 2010 7:28 pm  

Law said he's trying to make a pacman type map...
trineroks
Chief Administrator


Joined: 16 Oct 2009
Posts: 1770
Location: Southern Cali (UCLA)
 Post Posted: Thu Sep 23, 2010 7:56 pm  

galm wrote:
Law said he's trying to make a pacman type map...

oh i c nvm
LawrenceA
Administrator


Joined: 15 Feb 2010
Posts: 1135
Location: New Zealand
 Post Posted: Fri Sep 24, 2010 12:44 am  

Yea he made a couple of maps with pictures of pacman in the galaxite. I'm saying I want to make a pacman style map. Not another pacman drawing
trineroks
Chief Administrator


Joined: 16 Oct 2009
Posts: 1770
Location: Southern Cali (UCLA)
 Post Posted: Fri Sep 24, 2010 3:59 pm  

LawrenceA wrote:
Yea he made a couple of maps with pictures of pacman in the galaxite. I'm saying I want to make a pacman style map. Not another pacman drawing

no, he did make a pacman like map. kinda like cat and mouse tho