AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Show Head Attachment (https://forums.alliedmods.net/showthread.php?t=334291)

Celena Luna 09-13-2021 00:32

Show Head Attachment
 
I found this Attachment from InfiniteGame module quite nice and I want to use it in my mod.

https://images.gamebanana.com/img/ss...650d7ebae.webp
PHP Code:

IG_PlayerAttachment(id, const Sprite[], Float:TimeFloat:ScaleFloat:FrameRate); 

I used to used "create entity then make it update origin" way but it seem really smooth with InfiniteGame.
Anyone know how they actually do it? Hook Radio Icon?

DJEarthQuake 09-13-2021 04:28

Re: Show Head Attachment
 
Did you search TE_PLAYERATTACHMENT?

Example 1 team glow --hooked to flashlight

Example 2 winter breath --hooked to being alive and outside

TE_PLAYERATTACHMENT does not HAVE to be hooked to radio command.

Celena Luna 09-13-2021 04:45

Re: Show Head Attachment
 
Ahhh I see
it is TE_PLAYERATTACHMENT
I totally forgot this TE. Thank you

DJEarthQuake 09-13-2021 04:55

Re: Show Head Attachment
 
Welcome. There's TE_KILLPLAYERATTACHMENTS also if there's a need to end it immediately.

Celena Luna 09-13-2021 04:56

Re: Show Head Attachment
 
I see. That would help a lot
Is it possible to put up 2 TE_PLAYERATTACHEMNT on same player at the same time?

DJEarthQuake 09-13-2021 05:22

Re: Show Head Attachment
 
Sure can. I do it all the time.

Celena Luna 09-13-2021 05:32

Re: Show Head Attachment
 
I see
Thank you for your fast response ^^


All times are GMT -4. The time now is 11:40.

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