2 registered members (TipmyPip, 1 invisible),
18,758
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: player looking at me? i am behind player?
[Re: iam_ufo973]
#220272
08/06/08 18:36
08/06/08 18:36
|
Joined: Jan 2008
Posts: 1,580
Blade280891
Serious User
|
Serious User
Joined: Jan 2008
Posts: 1,580
|
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: player looking at me? i am behind player?
[Re: Joozey]
#220400
08/07/08 08:18
08/07/08 08:18
|
Joined: Jul 2008
Posts: 56
iam_ufo973
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2008
Posts: 56
|
Ok Q1 is solved by using c_scan. i prefered c_scan because i can scan in a cone which is i think not possible by c_trace.(i don't know if it slows down speed or not?). Q2 is still unsolved can someone give me an example on how to find if player is behind an entity? Plase Once again thanx for your help 
|
|
|
Re: player looking at me? i am behind player?
[Re: iam_ufo973]
#220423
08/07/08 10:45
08/07/08 10:45
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
c_scan(enemy.x, vector(enemy.pan - 180, enemy.tilt, enemy.roll), vector(20,20,500), SCAN_ENTS);
play with values 20,20,500...if enemy detects player behind him it will trigger players event_scan
Ubi bene, ibi Patria.
|
|
|
|