Where does eventPickup() occur in the event sequence when picking up an oil barrel or artefact?
I assume that three events will be triggered in some order:
* eventDestroyed() - when the feature object gets destroyed
* eventPickup() - when my droid picks something up
* eventDroidIdle() - when my droid becomes idle having just completed the task of picking something up
I assume eventDroidIdle will be the last event to get fired, but what order are the other two in?
EDIT: Also what is the .order of the droid object in eventPickup()? Is it still DORDER_RECOVER or has it changed to DORDER_NONE or something else?
eventPickup()
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
eventPickup()
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: eventPickup()
From reading the source (not actually testing it), it should be
eventPickup() -> eventDestroyed() -> eventDroidIdle()
eventPickup() -> eventDestroyed() -> eventDroidIdle()
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: eventPickup()
Awesome, thanks Per!
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO