LibRPC Z

From NPC for VCMP 0.4 Servers
Revision as of 04:51, 27 June 2023 by Habi (talk | contribs) (Created page with "{{Welcome|desc=Creates userdata when passed to RFC/F/Fa/RFCa has the effect of rawget. Unlike other functions, this is a first order function.| params=<source lang="lua">( p1, p2, ... )</source> <poem> ::p1 : If string, a rawget will be performed on the roottable when executed on remote side. Optional Parameters ::p2, p3, ... : A key which will be popped and get operation performed on p(i-1) </poem>| example= {{{!}} class="wikitable" {{!}}- ! Goal ! Corresponding code !...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Creates userdata when passed to RFC/F/Fa/RFCa has the effect of rawget. Unlike other functions, this is a first order function.


Parameters:

( p1, p2, ... )

p1 : If string, a rawget will be performed on the roottable when executed on remote side.
Optional Parameters
p2, p3, ... : A key which will be popped and get operation performed on p(i-1)


Return Values:
This function does not return any specific values.


Example

Goal Corresponding code
FindPlayer( 0 ).Name Z( F("FindPlayer")(0), "Name" )
FindPlayer( 0 ).Pos.x Z( F("FindPlayer")(0), "Pos", "x" )