AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Changing team of entity (https://forums.alliedmods.net/showthread.php?t=205493)

Schwabba2 01-11-2013 06:10

Changing team of entity
 
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?

jimaway 01-11-2013 07:43

Re: Changing team of entity
 
maybe try setting the pev_owner of that grenade to someone whos in CT

hleV 01-11-2013 07:53

Re: Changing team of entity
 
pev_team doesn't take string as an argument. Use 1 for T, 2 for CT, 3 for Spec.

Schwabba2 01-11-2013 08:35

Re: Changing team of entity
 
Quote:

Originally Posted by jimaway (Post 1871450)
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 (Post 1871453)
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.


All times are GMT -4. The time now is 13:26.

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