Ifcansee: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
One (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''ifcansee''' { do something } else { do something else }
[[If condition]] returning true if there is a line of sight between the current [[actor]] and the [[player]].
[[If condition]] returning true if there is a line of sight between the current [[actor]] and the [[player]].


The difference with [[canseetarget]] is that ''ifcansee'' actually verify if the player can see any actual part of the current actor tile (and basically would be hard to the player say how an enemy looked alike while standing except if he use F7 view mode), while ''ifcanseetarget'' verify if the current actor has "eye contact" with the player (and in result the player is capable of viewing a arm or a litoral part of an enemy without it targeting the player).
The difference with [[ifcanseetarget]] is that ''ifcansee'' actually verify if the player can see any actual part of the current actor tile (and basically would be hard to the player say how an enemy looked alike while standing except if he use F7 view mode), while ''ifcanseetarget'' verify if the current actor has "eye contact" with the player (and in result the player is capable of viewing a arm or a litoral part of an enemy without it targeting the player).


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]
[[Category:If conditions]]
[[Category:If conditions]]

Latest revision as of 11:43, 4 May 2009

ifcansee { do something } else { do something else }

If condition returning true if there is a line of sight between the current actor and the player.

The difference with ifcanseetarget is that ifcansee actually verify if the player can see any actual part of the current actor tile (and basically would be hard to the player say how an enemy looked alike while standing except if he use F7 view mode), while ifcanseetarget verify if the current actor has "eye contact" with the player (and in result the player is capable of viewing a arm or a litoral part of an enemy without it targeting the player).