Raised This Month: $ Target: $400
 0% 

tempentity ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 09-07-2008 , 22:02   tempentity ID
Reply With Quote #1

If you create a tempentity, does the resulting created entity have an ID number?, or specific classname? or some method of identifing the created entity?

For example, if I use the following routine to create a model...
Code:
 
message_begin(MSG_BROADCAST, SVC_TEMPENTITY) 
write_byte(106) 
write_coord(org[0]) 
write_coord(org[1]) 
write_coord(org[2]) 
write_coord(vel[0]) 
write_coord(vel[1]) 
write_coord(vel[2]) 
write_angle(0) 
write_short(g_modelID) 
write_byte(sound) // 1=metal, 2=wood,
write_byte(100) 
message_end()
does the new temp model have an ID?
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-08-2008 , 01:47   Re: tempentity ID
Reply With Quote #2

You can use this tool -> http://forums.alliedmods.net/showthread.php?t=77107 .Search by "New ones"
Alka is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 09-08-2008 , 19:35   Re: tempentity ID
Reply With Quote #3

Using that tool in the 'new' mode didn't show any new entities being created. Seems kinda odd that a new entity isn't created. Oh well.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-08-2008 , 21:02   Re: tempentity ID
Reply With Quote #4

I'm pretty sure they can only be touched by the game engine.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 09-14-2008 , 17:28   Re: tempentity ID
Reply With Quote #5

Temp ents are handled client side, so you're pretty much limited to the functionality given by the arguments of a message only.
__________________
MeRcyLeZZ is offline
Reply


Thread Tools
Display Modes

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 03:08.


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