test to see if something stands in an object [message #469285] |
Thu, 14 June 2012 12:27 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
When i allow my players to build defences i made some of those non-solid(like the turret)
however now it is possible to place a beacon inside one of these defences
is it possible to use a raytest to see if the beacon is visible?
or some other way??
ive tried to test with distances but this doesnt work for all my models
Owner of kambot TT server
kambot.freeforums.org
|
|
|
Re: test to see if something stands in an object [message #469287 is a reply to message #469285] |
Thu, 14 June 2012 14:03 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma: 1
|
Colonel |
|
|
Proper collision checking won't work since neither object is moveable and the turret has collisions disabled.
I see two solutions:
1. Create a zone around the turret with Iran_Beaconing_Prevention_Zone on it.
2. Use distance checking.
Both will need per-model settings.
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
|
|
|
Re: test to see if something stands in an object [message #469297 is a reply to message #469285] |
Thu, 14 June 2012 16:49 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
yea i found what went wrong now i use the gameobject list it works fine with distance check(i used vehgameobject list before)
had to expand distance for the turret specific though
thnx for the help anyway
Owner of kambot TT server
kambot.freeforums.org
|
|
|