Thread: Vecx and Vecy
View Single Post
  #9  
Old 09-06-2002, 08:18 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Quote:
Originally posted by Torankusu
not always.
you can also use them for detecting tiles infront of the players dir.
EXAMPLE:
NPC Code:

hitobjects 2,playerx+1.5+vecx(playerdir)*2,playery+2+vecy(pla yerdir)*2;

Yes, that is the kind of thing I want to know, for using with a triggeraction, to detect a player in front of you. Can you explain why the playerx has the +1.5+vecx(playerdir)*2 and the playery has +2+vecy(playerdir)*2 , please?
Reply With Quote