• Hail Guest!
    We're looking for Community Content Contribuitors to Stratics. If you would like to write articles, fan fiction, do guild or shard event recaps, it's simple. Find out how in this thread: Community Contributions
  • Greetings Guest, Having Login Issues? Check this thread!
  • Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
  • Hail Guest!
    Please read the new announcement concerning the upcoming addition to Stratics. You can find the announcement Here!

[Tech Help] Can I use Action Command in the command script?

Decors

UOEC Modder
Stratics Veteran
Stratics Legend
Is there any way to use Action Command in the command script?
I wanna use "Use Targeted Object" in the command script to improve open-corpse macro.
I found "SystemData.UserAction.TYPE_USE_TARGETED_OBJECT" in the ActionsWindow.lua.
But sure It dosen't work :)

I tried a few script ....but all failed lol.
Below two script works when I target myself but corpse.
- UserActionUseItem(TargetWindow.TargetId,false)
j-TargetWindow.OnItemDblClicked()

Hope if I can use Action command in the script or any other script to use targeted object, it's amazing.
 
Top