View Single Post
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 08-19-2011 , 19:52   Re: Natives and Forwards
Reply With Quote #6

Quote:
Forward- a function call to you (and usually other plugins) and variables are passed to you if any.
Its like one plugins says "Hey everyone, this person's and this race and this skill level changed to this this and this, just letting u know! Thanks for tuning in".
You are not required to implement all forwards, the forward will not affect you if you did not implement it. However some are very important like the one below:
ie OnSkillLevelChanged(client,race,newlevel)

Native- a function call to another plugin (the plugin that registered it, War3Source registered War3_GetGame() so when u call War3_GetGame() War3Source handles it), you provide the variables to them if any. Sort of like a forward to a single plugin. Natives we use often to return values like War3_GetGame() returns you a number which indicates the current game (CS TF DODS).

Stock- A normal function provided by an include file. If unused, it won't be compiled.
__________________
War3:Source Developer
"Your CPU is just a bunch of Muxes"
DarkEnergy is offline