Object question
#6

You sir need to remove that snippet. Now look for OnPlayerKeyStateChange and check if the aim button is HOLDED (there is a macro to check holded keys, but I can't provide). GetCameraPos won't do anything, you need some maths and use the following function: GetPlayerCameraFrontVector. It's not really easy as you thought.

https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply


Messages In This Thread
Object question - by Tommy_Mandaz - 11.03.2011, 23:42
Re: Object question - by JaTochNietDan - 12.03.2011, 00:31
Re: Object question - by Tommy_Mandaz - 12.03.2011, 01:33
Re: Object question - by Tommy_Mandaz - 12.03.2011, 04:09
Re: Object question - by Tommy_Mandaz - 12.03.2011, 04:33
Re: Object question - by admantis - 12.03.2011, 04:39
Re: Object question - by Tommy_Mandaz - 12.03.2011, 04:49

Forum Jump:


Users browsing this thread: 1 Guest(s)