Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The modding API for PA is very basic, and there's no "move there but stop if anything bad happens" command that I could find. Only this "go there and ignore everything" that you see the mod use.
Obviously the game has a "move and look" function, because you don't see guards just ignoring misbehaving prisoners in vanilla, like you did with the mod. That said, that function is likely C++ only, and not exposed to the Lua API :(
I purposely made it spread out to make the lag spikes minimal and hopefully unnoticeable, as making it just a concentrated big spike really sucked to play with.
So the more cameras you have and the faster the speed, the more they check.
When I was originally making the mod, I really wanted to make it event-based, as in, only if a prisoner starts misbehaving, have the "world" check if a camera caught sight of it.
But sadly, I had to make them "timed" like that, because the modding API is quite limited. :/
And for some reason you HAVE to have scripts running inside objects physically on the map, instead of just running in the background.
I was experimenting with update timers greater than 30 seconds, but that's usually how long it takes for a prisoner to destroy and open a cell door enough to escape, so it made the mod unreliable for what I wanted to achieve. So I capped it at 30 seconds.