Raised This Month: $204 Target: $400
 51% 

[TUT] SourcePawn Scripting - Tips, Basics to Advanced


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 02-02-2020 , 17:02   Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Reply With Quote #21

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
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Location: Methamphetamine
Old 02-12-2020 , 01:28   Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Reply With Quote #22

I think it would be a good idea to attach this topic so that no one don't have to search for it in the future also a new sourcemod user will see this topic and maybe this will fix the problem of identical errors and requests for
help such as: no debug stringtable, Error parsing gameconfig file, Language phrase "..." not found and so on
__________________
Heart

Last edited by BHaType; 02-12-2020 at 01:37.
BHaType is offline
Send a message via AIM to BHaType
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 18:38.


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