<aside> ⚡ script "core_getactorproperty" (int tid, int prop, int type)
</aside>
Returns the value of the given actor property for the given TID, in the given format. This is meant to be called from DECORATE, which has different numerical storage from ACS.
tid
: int - The TID of the target actor. 0 for yourself.prop
: int - The actor property to get.type
: int - The data type to convert the output to before returning
DATATYPE_RAW
- Return whatever value is stored in the property field, regardless of type.DATATYPE_INT
- Convert the value stored in the property field into an integer.The value stored in the property for the given TID.
Oil Slider uses this function to get the APROP_JumpZ
of the user to apply to the aerial jump.
OILL A 0 A_ChangeVelocity(momx, momy, CallACS("core_getactorproperty", 0, APROP_JumpZ, DATATYPE_RAW) / 65536.0, CVF_REPLACE)