Raised This Month: $ Target: $400
 0% 

register_touch with a spawned env_sprite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 08-15-2009 , 04:05   Re: register_touch with a spawned env_sprite
Reply With Quote #1

I don't have the sprite only code anymore, I just have the code with the two entities working together.

You don't really need a source to try it though, just register a touch with env_sprite, make it animate, and I doubt you'll be able to get a touch out of it.
__________________
Bad_Bud is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-15-2009 , 23:49   Re: register_touch with a spawned env_sprite
Reply With Quote #2

You need to set the sprite to SOLID_TRIGGER (or bbox, depends what youi want to do), set it's SIZE (mins and maxs) and also spawn it (eg: DispatchSpawn(ent) )... and should work.
I did that with a info_target with a sprite model, should work for env_sprite too
__________________
Hunter-Digital 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 14:59.


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