Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Engine Scripts Plus [ES+ 1.3] - More sensical function names
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: Engine Scripts Plus [ES+ 1.2] - More sensical function names

This by default only includes the main functions, but custom ones are no problem of course Tongue

This would be the code to add for those functions:
PHP Code: (Select All)
void Script_SetLocalVarBool(stringasNamebool abVal) {
    
SetLocalVarInt(asNameabVal 0);
}
 
bool Script_GetLocalVarBool(stringasName) {
    return 
GetLocalVarInt(asName) != 0;
}

void Script_SetGlobalVarBool(stringasNamebool abVal) {
    
SetGlobalVarInt(asNameabVal 0);
}
 
bool Script_GetGlobalVarBool(stringasName) {
    return 
GetGlobalVarInt(asName) != 0;


12-03-2018, 05:21 PM
Find


Messages In This Thread
RE: Engine Scripts Plus [ES+ 1.2] - More sensical function names - by Mudbill - 12-03-2018, 05:21 PM



Users browsing this thread: 1 Guest(s)