If entity touches player...
then he loses hp? How can i do like that, if my ent's name is Ent, and when Ent touches player, the player it touched loses hp?
|
In plugin_init:
Code:
Then: Code:
|
for what stands the ptr and ptd?
and how can i add more then 1 ent.. so like 3 entities? |
ptr= pToucher(this is the toucher)
ptd= pTouched(one that is touched) |
The touched will always be a player.
|
Hmm, just an question, how can i check if its an entity?
Btw, thanks v3x ;D |
Code:
this should work for you |
Player has entity either.
Quote:
|
Yes, always. The touched MUST be a player, unless the transaction does not have a player in it.
|
I mean in fact player can be toucher or touched.
But for register_touch("Ent" , "player" , "touched_player") touched would be the player since it filter out other classnames. |
| All times are GMT -4. The time now is 20:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.