Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

[12 January 2016] Added OnIssueOrder, OnSpellCast events. Added BlockCast, BlockOrder.


  • This topic is locked This topic is locked
No replies to this topic

#1
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,144 posts
We have two new events and two new API calls, but not any calls, those calls can be called only within the correspondent event.

The events are as follows:


OnSpellCast(castProc) where castProc has the following members:

castProc.spellID --this determines which spell was cast, Q,W,E,R,D,F,B
castProc.targetID --this holds the networkID of the spell target (can be nil/zero if the cast is a skillshot)
castProc.startPos --holds the starting position of the spell cast (your local player XYZ)
castProc.endPos --holds the ending position of the spell (again as XYZ castproc.endPos.x,y,z)


---------------------------------


OnIssueOrder(orderProc) where orderProc has the following members:

orderProc.flag --this flag is different for different orders, like attack,moveto,holdposition,stop, etc.
orderProc.target --if you're issuing order onto an object, this is a pointer to that object.
orderProc.position --this shows to what coordinates the order is issued to (XYZ)


-------------------------------



Some really small code examples:

OnIssueOrder(function(orderProc)
if orderProc.flag == 2 then
BlockOrder();
end
end)

OnSpellCast(function(castProc)
if castProc.spellID == _Q then
BlockCast();
end
end)

  • 2




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users