on_spider_reached_destination

Post Reply
User avatar
micromario
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Thu Apr 05, 2018 11:53 am
Contact:

on_spider_reached_destination

Post by micromario »

I would like to see this event added

Would be called when any spidertron reaches its autopilot_destination

Event parameters
vehicle :: LuaEntity: Spider vehicle which was requested to move.
position :: Position: Goal position to which spidertron was sent to.
player_index :: index of the player who requested the moving (if any)

User avatar
micromario
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Thu Apr 05, 2018 11:53 am
Contact:

Re: on_spider_reached_destination

Post by micromario »

I've found a workaround which is to check if autopilot_destination is nil, and player hasn't driven the vehicle, and the spidertron remote hasn't been used

Post Reply

Return to “Implemented mod requests”