contributors:jh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
contributors:jh [2022/08/11 13:46] – jerryhopper | contributors:jh [2022/08/25 15:49] (current) – jerryhopper | ||
---|---|---|---|
Line 71: | Line 71: | ||
soldier_c.SetFireMode(2); | soldier_c.SetFireMode(2); | ||
soldier_c.SetFireWeaponWanted(1) | soldier_c.SetFireWeaponWanted(1) | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | **RESTAPI** | ||
+ | how to use restApi | ||
+ | |||
+ | via ArkensoR (https:// | ||
+ | < | ||
+ | class TestCallback : RestCallback | ||
+ | { | ||
+ | override void OnSuccess( string data, int dataSize ) | ||
+ | { | ||
+ | Print(" | ||
+ | if( dataSize > 0 ) | ||
+ | Print(data); | ||
+ | }; | ||
+ | } | ||
+ | ... | ||
+ | auto ctx = GetGame().GetRestApi().GetContext(" | ||
+ | TestCallback callback(); | ||
+ | // | ||
+ | ctx.POST(callback," | ||
+ | </ | ||
+ | |||
+ | |||
+ | **FileHandle** | ||
+ | |||
+ | Scripts/ | ||
+ | |||
+ | < | ||
+ | FileHandle file = FileIO.OpenFile(" | ||
+ | if (file != 0) | ||
+ | { | ||
+ | file.FPrint(" | ||
+ | file.FPrint(file, | ||
+ | file.FPrint(file, | ||
+ | file.CloseFile(); | ||
+ | } | ||
+ | |||
</ | </ | ||
contributors/jh.1660222010.txt.gz · Last modified: 2022/08/11 13:46 by jerryhopper