Raised This Month: $ Target: $400
 0% 

[Ham Sandwich] Ham_TakeDamage Function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Infinity
Junior Member
Join Date: Sep 2009
Old 08-11-2012 , 02:47   Re: [Ham Sandwich] Ham_TakeDamage Function
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Why do you have a 1.0 in your function declaration? That doesn't even make any sense. You can't have random numbers in a function declaration. You need to follow the forward format for Ham_TakeDamage in ham_const.inc.
Because I read in the Ham Sandwich docs this:
function(this, idinflictor, idattacker, Float:damage, damagebits)

So I thought I would replace the function with:
Function(victim, cause, attacker, 1.0, damagebits)
Infinity is offline
 



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 05:52.


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