Jump to content

Photo

IWD2 SetVisualRange()

IWD2 Script Actions

No replies to this topic

#1 Endurium

Endurium
  • Members
  • 32 posts
  • Gender:Male

Posted 22 July 2018 - 06:02 AM

Per the IESDP https://gibberlings3...iwd2actions.htm

 

This action sets the visual range for all creatures in an current area to the specified value. The action does not affect the party.

I suspect this action actually is specific to the creature using it; it is primarily used in cutscenes and seems to be actor-specific. Additionally, the player character can make use of it via an AI script.

 

When used on the player character, it functions similarly to EE opcode 262 (Visual Range) but is not capped. IWD2 scripts use values of 0 (blind), 25 and 99/100. The value 25 corresponds approximately to the limit of opcode 262. Greater values work but are subject to LOS and can lead to visual fog-of-war glitches if not used in open areas (nothing blocking LOS).

 

If the player character uses a value of 0 or 1, no other NPCs will be rendered as the fog of war will cover everything. (They can still see you, of course.)

 

Just mentioning this because the way the description is worded I thought I wouldn't be able to use it. Naturally, I tried it anyway.


Edited by Endurium, 22 July 2018 - 06:07 AM.




Reply to this topic



  



Also tagged with one or more of these keywords: IWD2, Script, Actions

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users