atomen
04-11-2008, 10:41
I'm testing hamsandwich with different things but i have 2 questions
about 2 functions
/**
* Description: Called whenever two entities touch.
* Forward params: function(this, idother);
* Return type: None.
* Execute params: ExecuteHam(Ham_Touch, this, idother);
*/
Ham_Touch,
Does this work when 2 players collide with each other or do they not count as a entity in this case ?
The second question :
/**
* Description: Adds an item to the player's inventory.
* Forward params: function(this, idother);
* Return type: Integer.
* Execute params: ExecuteHam(Ham_AddPlayerItem, this, idother);
*/
Ham_AddPlayerItem,
How does this function work ?
Should "idother" be the weapon id ?
It seems to work with weapon_* and CSW_* constants because it is not returning any tag mismatch on any of them.
about 2 functions
/**
* Description: Called whenever two entities touch.
* Forward params: function(this, idother);
* Return type: None.
* Execute params: ExecuteHam(Ham_Touch, this, idother);
*/
Ham_Touch,
Does this work when 2 players collide with each other or do they not count as a entity in this case ?
The second question :
/**
* Description: Adds an item to the player's inventory.
* Forward params: function(this, idother);
* Return type: Integer.
* Execute params: ExecuteHam(Ham_AddPlayerItem, this, idother);
*/
Ham_AddPlayerItem,
How does this function work ?
Should "idother" be the weapon id ?
It seems to work with weapon_* and CSW_* constants because it is not returning any tag mismatch on any of them.