AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set something like a bool to an entity (https://forums.alliedmods.net/showthread.php?t=129312)

Alucard^ 06-11-2010 14:13

Set something like a bool to an entity
 
I want to set something like a bool to an entity (exactly a dropped entity, like a weapon).

For example... if a created a new weapon and the player drop that weapon... now is a weaponbox, how to set that weaponbox that is the new weapon that i created? so when other player pickup that weapon he get the NEW weapon and not the default weapon.

You understand? sry, my english is not perfect.

padilha007 06-11-2010 14:39

Re: Set something like a bool to an entity
 
check the entity id?

Bugsy 06-11-2010 19:59

Re: Set something like a bool to an entity
 
Sounds like you are creating a weapon for a player and when dropped it becomes a weaponbox entity. You want to make it so when another player picks it up (touches the weaponbox), he gets the same weapon that the original player dropped?

Try this
PHP Code:

//Set weapon ID to weaponbox entity
set_peviEntity pev_iuser1 WeaponID );

//When touched, retrieve weapon ID from entity
WeaponID peviEntity pev_iuser1 ); 


meTaLiCroSS 06-11-2010 22:10

Re: Set something like a bool to an entity
 
http://forums.alliedmods.net/showthread.php?t=115160

Bugsy 06-12-2010 12:52

Re: Set something like a bool to an entity
 
Quote:

Originally Posted by wrecked_ (Post 1206796)

Sorry - no matches. Please try some different terms.

:lol:

wrecked_ 06-12-2010 13:05

Re: Set something like a bool to an entity
 
Woops :oops:

https://forums.alliedmods.net/showthread.php?t=118110 =]


All times are GMT -4. The time now is 14:44.

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