damage event
Does any1 know what the arguments in the code means?
Code:
register_event("Damage","TGdamage","b","2!0","3=0","4!0")any help would be appreciated |
Re: damage event
|
Re: damage event
no i mean what do they mean
ie register_event("DeathMsg", "hook_death", "a", "1>0") 1>0 - killer must not be worldspawn |
Re: damage event
Not sure to understand exactly what you say, but if you want to know params for the Damage event, it's here : http://wiki.amxmodx.org/Half-Life_1_Game_Events#Damage
|
Re: damage event
Quote:
3=0 means third (3) parameter have to be null (0) 4!0 means fourth (4) parameter must NOT contain null (0) btw.: param 1 is alway the type of the message for you it would be "Damage"... example of deathmsg: Code:
stock make_deathMsg(Killer, Victim, const weapon[])AND look here: http://forums.alliedmods.net/showthread.php?p=65983 greetz regalis |
Re: damage event
i know those parameters stuff
but i need to know the arguments i saw the meaning of it b4 but it was wrong it was like this: 2!0 - damage must be more than 0 3=0 - damage must be done by player 4!0 - damage must not be worldspawn This is wrong but if sum1 knows the correct one plz tell me thx in advanced. |
Re: damage event
You have register_event() usage explanation and Damage message description so why you asking? Maybe you need a better Damage message arguments desription? Or you just can't figure out how that particular register_event() conditions is related to corresponding Damage event arguments?
|
Re: damage event
okay what I don't get about register_events are:
Code:
You can optionally set a list of restrictions/conditions on the event. For example: |
Re: damage event
It basically filters out events you don't want/need. So let's say you're using the DeathMsg event to find a killer, and slap him or something (just an example). But, with this, you can't slap an entity or the more common world spawn entity (index: 0). So if killer is the first paramter passed you would use:
Code:
Hope I did everything right, typed it up in the little post box at school. |
Re: damage event
Quote:
|
| All times are GMT -4. The time now is 06:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.