View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-02-2020 , 16:02   Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Reply With Quote #20

Quote:
Originally Posted by xZk View Post
another common mistake on my part that I also had is to use the wrong types of props, since in some entities there is only one of these: Prop_Send or Prop_Data.
Well, if you use the sm_dump* commands you can see which properties are Prop_Send or Prop_Data.

Quote:
Originally Posted by xZk View Post
I have a doubt with respect this point:

Would it be a good alternative to use a DispatchKeyValueVector(ent, "origin", pos) instead of TeleportEntity ?. In my case I always use this to SetParent entities when they are created.
I guess it's down to preference. But sometimes depending on entity type DispatchKeyValueVector origin might not teleport the entity to where you want and it remains at 0,0,0. This is just something you have to test when creating plugins.


Quote:
Originally Posted by Dragokas View Post
-
Quote:
Originally Posted by xZk View Post
-
Thanks, added links.
__________________
Silvers is offline