<aside> ⚡ script "core_alphaprojectile" (int who, int teamMode, int minAlpha, int maxDist) CLIENTSIDE
</aside>
This script makes an actor become semitransparent for the given client only, fading in and out with distance.
For use of the TID parameter, you can use [core_getptrtid](<https://mm8bdm.notion.site/core_getptrtid-bc4f8073984a40569b6dd2b74a384abc>)
to get the actor you want this script to relate to.
<aside>
💡 Note: Because this script takes 4 parameters, it is required to call it using ACS_NamedExecuteWithResult
.
</aside>
who
: int - TID of the person the teamMode
is relative to.teamMode
: int - The collective this should apply to, can be one the following:
APROJ_ALL
: This actor fades out for everyone who approaches it.APROJ_TEAM
: This actor fades out for the owner and their team.APROJ_TEAM_ENEMY
: This actor fades out for the owner’s enemies, but not their allies.minAlpha
: int - Fixed point value of the minimum alpha.maxDist
: int - The farthest distance the transparency effect will apply.