Detect player props

Archive of the old editing forum
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.
Locked
User avatar
Apothem
Posts: 2070
Joined: Sat Nov 29, 2003 7:13 pm
Location: Performing open heart surgery on an ACS compiler.

Detect player props

Post by Apothem »

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?
User avatar
Zell
Posts: 791
Joined: Thu Jul 24, 2003 7:47 am
Location: IN A GODDAMN BOX[In Erie.]

Post by Zell »

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. :P 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.
Costja
Posts: 188
Joined: Mon Oct 18, 2004 3:58 pm
Location: Russia, Moscow
Contact:

Post by Costja »

or use them when player is an activator (then TID may be 0).

As somebody said a player is an actor (thing) ;)
Locked

Return to “Editing (Archive)”