User Tools

Site Tools


4rpl:commands:setscriptvar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:setscriptvar [2023/03/26 15:43] – Removed input variable info, unable to replicate proof. Vertu4rpl:commands:setscriptvar [2024/06/06 14:03] (current) – Clarification Vertu
Line 11: Line 11:
  
 ===== Description ===== ===== Description =====
-Sets the named variable on the specified unit and script. +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 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 ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
-SetScriptVar(<-someUnitUID "MyScript" "test" "something")+SetScriptVar(<-someUnitUID "MyScript.4rpl" "test" "something")
 </code> </code>
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/setscriptvar.txt · Last modified: 2024/06/06 14:03 by Vertu