Jump to content

LockScroll() action works not only from a creature script


Recommended Posts

IESDP says:

Quote

135 LockScroll()

This action locks the screen on the active creature, preventing the screen from being scrolled away. The action only works from a creature script.

(link)

This is not true in BGEE v2.6. where it works from global scripts when used with ActionOverride(). It is also used in game cutscenes scripts.

 

---

I made similar post earlier, but it seems to be gone because of server problems.

Link to comment
Posted (edited)

The wording isn't the best. What the IESDP means is that the action only works when executed by a creature. So yeah, ActionOverride()'ing it onto a creature / using it in cutscene scripts (where actions are executed by CutSceneId) works.

Edited by Bubb
Link to comment
13 hours ago, Bubb said:

The wording isn't the best. What the IESDP means is that the action only works when executed by a creature. So yeah, ActionOverride()'ing it onto a creature / using it in cutscene scripts (where actions are executed by CutSceneId) works.

Ok. I would know for the future that it is always equivalent. This was kind of oblivious to me that this action need some creature to be "active creature" to work properly, that is why I thought "The action only works from a creature script." brings some new information.

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...