Author Topic: player::damage  (Read 661 times)

function player::damage(%this, %obj, %pos, %damage, %damageType)

What are the parameters of this function? What do they mean?

1. %this = player/object that damage w/e?
2. %obj = Player/object that caused the damage to be done to %this?
3. %pos = Body part hit?
4. %damage = amount of damage (x/100)
5. %damageType = ?
« Last Edit: January 15, 2009, 05:21:10 PM by Kalphiter »


%this, %obj, %sourceObject, %position, %damage, %damageType
1. Ignore %this
2. Object getting damaged
3. Object damaging
4. Position of damage (Dunno if its map position or body position)
5. Amount of damage being inflicted
6. Same thing as your old topic.

Tom

Quote from: Ephi
Now you're just abusing the generosity of the kind people in the Coding Help forum.
« Last Edit: January 15, 2009, 05:40:33 PM by Tom »

Please stop trying to fit in.