Quote: "plrdistwithin and set it at 1 and it did nothing"
the distance used is 100 'units' = 1 segment. So therefore 1 is too small for the engine to measure (I think the engine has issues at ranges under 30-20, but I cannot confirm this). So you would want something like - plrdistwithin=60. This is a reasonably close distance, but the fine tweaking of the value is totally up to you of course.
An alternative to 'plrfacing=x' is 'pickobject=1 (or 0). The definition of pickobject, as copied from the script syntax list is:
3.10.1.2 PICKOBJECT=X
Description: Is true if the entity is dead-centre screen and X is 1 or the entity is
not dead-centre screen and X is 0.
Range: X = 0 – True if the entity is not in the centre of view.
X = 1 – True if the entity is in the centre of view.
Example: :pickobject=1:playertake
3.10.2ACTIONS
So perhaps a script like:
:state=1,plrdistwithin=60,pickobject=1:blah blah
Or that's how I'd do it.
On a side note check out the complete script syntax list in your fpscreator/docs folder. This is very helpful for scripting.
Burger,
- An Instinctive Fear IndieDB page, download demo today!