~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetScriptVar|Get]] * [[4rpl:commands:SetScriptVar|Set]] ====== SetScriptVar ====== SetScriptVar(<-unit <-scriptName <-varName <-val) ===== Description ===== Sets the named variable on the specified unit and script.\\ The script is referenced by name. If the name is an empty string, the first (possibly only) script on the unit will be referenced. The extention ".4rpl" must also be included. ===== Examples ===== SetScriptVar(<-someUnitUID "MyScript.4rpl" "test" "something") <=[[4rpl:start| Index]]