Raised This Month: $ Target: $400
 0% 

Is monster ally?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-24-2006 , 08:43   Re: Is monster ally?
Reply With Quote #2

A SvenCoop Module? O_o Where? O_o
> get_user_attacker returns attackers EntId.
The Entity IDs of Players range from 1 to 32.
Other Entites Entids range from 33 to 8224.
I am not sure if this can only be called on Damage
Event or if it is last Attack but if you try to use
Damage Event Hook it as Global Event, not as
Event sent to a single Player because that is
only called when the Player takes Damage.
Whatsoever you cannot get the Team or Ally Status with that.
Bythe Way it is "is_player_ally" not "sc_is_player_ally" and also
Scientistsand Barneys have this reversed. For Example a Scientist
with is_player_ally = 1 would be an Enemy. Also check if the
Data is a bool or an integer. (A bool makes more sence, as this
can just be 0 or 1 / false or true) Or you could try to get the
Monsters Relation to you. (Offers much more) This is, for Example,
if you shoot a Scientist he runs away from you, if you heal him
with the MedKit he acts normal again.
__________________
EAT YOUR VEGGIES
Silencer123 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 04:46.


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