Raised This Month: $ Target: $400
 0% 

Changing team of entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Schwabba2
Junior Member
Join Date: Jul 2012
Old 01-11-2013 , 06:10   Changing team of entity
Reply With Quote #1

Hi,

i just tried to change the team of a grenade with:

PHP Code:
set_pev(entpev_team"CT"
But it won'nt work. Someone know what i have to change for it?

Last edited by Schwabba2; 01-11-2013 at 06:26.
Schwabba2 is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 01-11-2013 , 07:43   Re: Changing team of entity
Reply With Quote #2

maybe try setting the pev_owner of that grenade to someone whos in CT
jimaway is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-11-2013 , 07:53   Re: Changing team of entity
Reply With Quote #3

pev_team doesn't take string as an argument. Use 1 for T, 2 for CT, 3 for Spec.
__________________
hleV is offline
Schwabba2
Junior Member
Join Date: Jul 2012
Old 01-11-2013 , 08:35   Re: Changing team of entity
Reply With Quote #4

Quote:
Originally Posted by jimaway View Post
maybe try setting the pev_owner of that grenade to someone whos in CT
Ya i did that already, but the HE is still in the wrong team cuz i can only kill enemies when friendlyfire is turned on (but it shows that i made the kill).


Quote:
Originally Posted by hleV View Post
pev_team doesn't take string as an argument. Use 1 for T, 2 for CT, 3 for Spec.
I tried 1 2 and 3 but nothing worked.


I think it must be any property of the HE.

Last edited by Schwabba2; 01-11-2013 at 08:35.
Schwabba2 is offline
Reply



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 13:26.


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