Raised This Month: $51 Target: $400
 12% 

Trigger Volumes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spunkster21
Senior Member
Join Date: Aug 2008
Old 08-19-2010 , 03:37   Trigger Volumes
Reply With Quote #1

I'm attempting to define a cuboid trigger volume and I'd like the know the best way to determine when it's been activated, i.e. when a player enters the volume.

I was originally hoping I could spawn a trigger multiple, but found several old topics stating it was not possible to spawn brush based entities.

If I have a volume defined by 8 position coordinates, what is the best way to determine if a player is within the volume?

The volume may not be perfectly rectangular or square.

Thanks.

PS. If it's now possible to spawn trigger multiples I'd love to know how.
spunkster21 is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 08-19-2010 , 04:02   Re: Trigger Volumes
Reply With Quote #2

a tutorial on creating brush entities can be found here
usually the new topics are more up to date than the old topics hint hint.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
spunkster21
Senior Member
Join Date: Aug 2008
Old 08-19-2010 , 07:43   Re: Trigger Volumes
Reply With Quote #3

Quote:
Originally Posted by [AAA] Thrawn View Post
a tutorial on creating brush entities can be found here
usually the new topics are more up to date than the old topics hint hint.
Thanks, that's awesome.

I did search, I just didn't see this topic.
spunkster21 is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-19-2010 , 12:16   Re: Trigger Volumes
Reply With Quote #4

Btw, you only need two position coordinates to create a cuboid. The rest can be calculated.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-19-2010 , 13:01   Re: Trigger Volumes
Reply With Quote #5

He said not rectangular. This can be done with OnGameFrame and math (i mean geometry...).
FaTony is offline
spunkster21
Senior Member
Join Date: Aug 2008
Old 08-20-2010 , 04:39   Re: Trigger Volumes
Reply With Quote #6

Quote:
Originally Posted by rhelgeby View Post
Btw, you only need two position coordinates to create a cuboid. The rest can be calculated.
Yes, I know

The difficulty I'm having is when I have a non-rectangular shape, e.g. a trapezoid, I'm not sure how to determine when someone is in the volume. Currently I check if they're within the min/max coords, but that doesn't always work .

Quote:
Originally Posted by FaTony View Post
this can be done with OnGameFrame and math (i mean geometry...).
My maths isn't very good and I was hoping for some help there, or being pointed in the right direction. I did a general google search for how to do this and found many sites with very complex methods of determining if something is in a volume; which I didn't really understand.

Thanks.
spunkster21 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode