AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Different Entity (https://forums.alliedmods.net/showthread.php?t=338288)

wilian159 06-23-2022 18:37

Different Entity
 
i have:

PHP Code:

RegisterHam(Ham_CS_Item_CanDrop"weapon_usp""Ham_Item_Can_Drop_Pre"falsetrue

and

PHP Code:

register_forward(FM_SetModel"xFwSetModel"

because the entity of Ham_CS_Item_CanDrop is different from FM_SetModel
how do i get the same entity of FM_SetModel using Ham_CS_Item_CanDrop
I need to catch the same entity when it is on the ground

i need to set aiment on the weapon via Ham_CS_Item_CanDrop

I found a solution using register_touch("weaponbox", "worldspawn", "xWeaponboxTouch")

bibu 06-24-2022 10:21

Re: Different Entity
 
Show us your full code. You would need to assign a variable to such entity.

wilian159 06-24-2022 11:09

Re: Different Entity
 
Quote:

Originally Posted by bibu (Post 2782337)
Show us your full code. You would need to assign a variable to such entity.

I found a solution using register_touch("weaponbox", "worldspawn", "xWeaponboxTouch")


All times are GMT -4. The time now is 21:06.

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