Detect player props
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Apothem
- Posts: 2070
- Joined: Sat Nov 29, 2003 7:13 pm
- Location: Performing open heart surgery on an ACS compiler.
Detect player props
Is it possible to detect the angle in which the player is facing via an ACS command? Also, is there an ACS command that lets you detect the x, y, and z coords of the player?
You might be able to get away using GetActorX, GetActorY, GetActorZ, and GetActorAngle if you give the player a TID, but I'm not sure. I don't have time to check right now, so meh.
For now heres the defiintion of each of those commands:
http://www.zdoom.org/wiki/index.php?title=GetActorX
http://www.zdoom.org/wiki/index.php?title=GetActorY
http://www.zdoom.org/wiki/index.php?title=GetActorZ
http://www.zdoom.org/wiki/index.php?title=GetActorAngle
Remeber, you can't set those values with those commands.
I'll try to check this as soon as I can.

http://www.zdoom.org/wiki/index.php?title=GetActorX
http://www.zdoom.org/wiki/index.php?title=GetActorY
http://www.zdoom.org/wiki/index.php?title=GetActorZ
http://www.zdoom.org/wiki/index.php?title=GetActorAngle
Remeber, you can't set those values with those commands.
I'll try to check this as soon as I can.