Iris2.de

Iris2-Forum
It is currently Sun Dec 22, 2024 1:47 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Dec 01, 2008 6:19 pm 
Offline

Joined: Tue Nov 25, 2008 9:22 pm
Posts: 9
Ghoulsblade informed me that:
ghoulsblade wrote:
Queue Targets :
MacroCmd_QueueTargetSerial(targetserial,timeout)
is already available for usage in hotkeys =)


how is that?

All I want is to set 'wheelup' to 'queue target self' and 'wheeldown' to 'queue last target' but I am unfamiliar with the 'queue targets' syntax in lua.
Any help would be appreciated, thank you :>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2008 7:41 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
this should work =)
put into data/mymacros.lua

Code:
SetMacro("wheelup",      function() MacroCmd_QueueTargetSerial(GetPlayerSerial(),1000) end)
SetMacro("wheeldown",   function() MacroCmd_QueueTargetSerial(MacroGetLastTargetSerial(),1000) end)

function MacroGetLastTargetSerial ()
   if (not gMacroLastTargetMemory) then return 0 end
   if (gMacroLastTargetMemory.hittype == kMousePickHitType_Mobile) then return gMacroLastTargetMemory.mobile.serial end
   if (gMacroLastTargetMemory.hittype == kMousePickHitType_Dynamic) then return gMacroLastTargetMemory.dynamic.serial end
end


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2008 8:12 pm 
Offline

Joined: Tue Nov 25, 2008 9:22 pm
Posts: 9
Ok, I'll test it and thank you for your (extremely quick)help :>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group