Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help New Problem: SetEntityPlayerLookAtCallback
araphon1 Offline
Junior Member

Posts: 5
Threads: 2
Joined: Mar 2012
Reputation: 0
#4
RE: New Problem: SetEntityPlayerLookAtCallback

(03-14-2012, 02:21 PM)SilentStriker Wrote: StartPlayerLookAt and StopPlayerLookAt();is the code you are looking for

StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string& asAtTargetCallback);


Forces the player to look at a certain entity until StopPlayerLookAt is used.




asEntityName - the entity to look at


afSpeedMul - how fast should the player look at the entity


afMaxSpeed - maximum speed allowed


asAtTargetCallback - function to call when player looks at target
Actually, no, thats not what im looking for. Im looking for a script that checks "Hey, IS the player, by free will, looking at this entity?" "Yes, he is." "OK, then lets make that grunt move, since the player IS looking at him."

Quote:

I noticed you didn't have a space between asEntity and int. Maybe that's the problem?
Nope, already tried that one Smile No matter how I place spaces etc, it just doesnt work. And in all other int alState I have come across, you just put down an integer, you dont have to declare data type. I've done that with loads of collide callbacks etc, no problem. But in this particular piece of code, it just feels like acting up.
(This post was last modified: 03-14-2012, 02:32 PM by araphon1.)
03-14-2012, 02:25 PM
Find


Messages In This Thread
RE: New Problem: SetEntityPlayerLookAtCallback - by araphon1 - 03-14-2012, 02:25 PM



Users browsing this thread: 1 Guest(s)