lot61 Posted June 3, 2023 Posted June 3, 2023 I'm trying to use the following API to move a newly hired staff member, but I'm getting a message, "Can't place person here" in the game interface. executeAction(action: "peeppickup", args: PeepPickupArgs, callback?: (result: GameActionResult) => void): void; For the PeepPickupArgs, I can't find a correct set of values to make it work. I'm even trying to place the staff member where an existing staff member is. An example value using the coordinate of an existing staff member in Forest Frontiers: { type: 2, // 0: pickup, 1: cancel, 2: place id: 0, x: 1632, y: 832, z: 96, playerId: 0, } I've also tried dividing all coordinates by 32 just in case but that didn't work either. Can someone confirm if this API is working, and what is required to get the action to succeed?
lot61 Posted June 5, 2023 Author Posted June 5, 2023 I found that a pickup action with type 0 (pickup) must be executed before a pickup action with type 2 (place) can be executed. Even if a staff member is hired with "autoPosition: false" so that they are ready to be dropped, the staff cannot be dropped by the API.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now