Page 1 of 1

[ACS] Placing an object in a random spot in the map?

Posted: Tue May 10, 2022 6:23 pm
by Recurracy
Hello,

I'd like to know if it would be possible to place an object somewhere in a random spot in the map. This part would be pretty easy I assume. The part that would be much less easy is that it has to be reachable by the player. Is it possible to check for something like that somehow?

Re: [ACS] Placing an object in a random spot in the map?

Posted: Wed May 11, 2022 1:25 pm
by KeksDose
If you're willing to replace things like weapons, keys, powerups, that kinda stuff which tends to be in pretty good spots, you could use decorate to relay their positions to acs and make another script select one of those positions randomly. Then you can spawn something there.

Otherwise, I don't think it's feasibly possible to use acs to select some position and then be able to determine that the player can get there. acs can't even tell whether something is inside or outside a "room shape".