<aside> ⚡ script "core_changeClientProperty" (int prop, int val, int chkptr) CLIENTSIDE

</aside>

Usage


This script changes a given property to the given value on the activator, and only the person specified by chkptr can see the change.

For example, you may want a shield weapon to be fully opaque for everyone except the user… this is how you would do that.

Note that the val entry must come as the fixed value you’re targeting, which will require some math on the developer’s end. But it’s a simple multiplication of your decimal number with 65536, as specified in the data types section of our basic ACS reference.

Parameters

Example


Below is an excerpt from Water Shield which sets the bubble to 0.6 alpha, but only for the user (AAPTR_TARGET).

WATS B 0 ACS_NamedExecuteWithResult("core_changeClientProperty", APROP_Alpha, 39321, AAPTR_TARGET) // 0.6 * 65536