eventPickup()

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

eventPickup()

Post by aubergine »

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?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: eventPickup()

Post by Per »

From reading the source (not actually testing it), it should be
eventPickup() -> eventDestroyed() -> eventDroidIdle()
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: eventPickup()

Post by aubergine »

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
Post Reply