Raised This Month: $ Target: $400
 0% 

How to create a "trigger" entity in running time?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 04-17-2008 , 12:25   Re: How to create a "trigger" entity in running time?
Reply With Quote #8

Yes, that's exactly what I said.

If the string in m_ModelName is "models/somemodel.mdl" then you have an entity that is not tied to the bsp, but can be spawned dynamically. But, if m_ModelName is a string such as "*8" or "*17" then it is tied to a brush in the bsp. Trigger_multiple is an example of one entity that is tied to a brush like this.

If you want to create a trigger, you'll have to set one up in code. Set a min/max vector to define an area and then check every 0.X seconds if any players origin is in that area.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
 



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 11:14.


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