Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. (Action Definition)
  2. StoreIntWithUnit
  3. Parameters
  4. owner <unit>
  5. fieldname <string>
  6. value <int>
  7. Local Variables
  8. ID = <int> UnitGetTag(owner)
  9. Actions
  10. DataTableSetInt(true, CombineString(IntToString(ID), fieldname), value)
  11.  
  12. (Function Definition)
  13. GetIntWithUnit
  14. Return Type: <int>
  15. Parameters
  16. owner <unit>
  17. fieldname <string>
  18. Local Variables
  19. ID = <int> UnitGetTag(owner)
  20. Actions
  21. Return( DataTableGetInt(true, CombineStrings(IntToString(ID), fieldname) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement