AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   tempentity ID (https://forums.alliedmods.net/showthread.php?t=77227)

Vet 09-07-2008 22:02

tempentity ID
 
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?

Alka 09-08-2008 01:47

Re: tempentity ID
 
You can use this tool -> http://forums.alliedmods.net/showthread.php?t=77107 .Search by "New ones"

Vet 09-08-2008 19:35

Re: tempentity ID
 
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.

XxAvalanchexX 09-08-2008 21:02

Re: tempentity ID
 
I'm pretty sure they can only be touched by the game engine.

MeRcyLeZZ 09-14-2008 17:28

Re: tempentity ID
 
Temp ents are handled client side, so you're pretty much limited to the functionality given by the arguments of a message only.


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

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