AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Glow weaponbox after picking up (https://forums.alliedmods.net/showthread.php?t=309186)

edon1337 07-16-2018 15:18

Glow weaponbox after picking up
 
I have weaponboxes that are glowing but after I pick them up, and drop them the glow is gone. Do I use Ham_Item_Drop and then glow them again?

Another question: We have a weaponbox in the ground, I pick it up, it becomes weapon_*, if I drop it, does it become weaponbox again or just stays as a weapon_* ?

Thanks to anyone who helps.

Ghosted 07-16-2018 15:44

Re: Glow weaponbox after picking up
 
About first question try that ham forward otherwise use FM_SetModel but that Item_Drop says it is calling when player dies. (Checked in ReGameDLL & Drop function removes that item after a while).
About second, when you pick up weaponbox, it dissapears and you getting packed weapon entity & after drop this entity is re-packed into new weaponbox entity before someone picks it up. WeaponBoxEntity != PickedWeaponFromWeaponBoxEntity

edon1337 07-16-2018 19:43

Re: Glow weaponbox after picking up
 
Quote:

Originally Posted by Ghosted (Post 2604068)
About first question try that ham forward otherwise use FM_SetModel but that Item_Drop says it is calling when player dies. (Checked in ReGameDLL & Drop function removes that item after a while).
About second, when you pick up weaponbox, it dissapears and you getting packed weapon entity & after drop this entity is re-packed into new weaponbox entity before someone picks it up. WeaponBoxEntity != PickedWeaponFromWeaponBoxEntity

FM_SetModel worked, thanks.
I just wanted to know that after you drop a weapon it becomes a weaponbox, I'm aware that a weapon_* entity and weaponbox aren't the same. Thanks


All times are GMT -4. The time now is 12:19.

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