Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » test to see if something stands in an object
test to see if something stands in an object [message #469285] Thu, 14 June 2012 12:27 Go to next message
robbyke is currently offline  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 Go to previous messageGo to next message
Whitedragon is currently offline  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 Go to previous message
robbyke is currently offline  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 Smile


Owner of kambot TT server

kambot.freeforums.org
Previous Topic: Tiberium Crystal War: Radio Commands ;)
Next Topic: Destroy a Building after X Amount of Time
Goto Forum:
  


Current Time: Mon Jul 15 15:33:37 MST 2024

Total time taken to generate the page: 0.00571 seconds