PDA

View Full Version : NPC and Gravity


Mattos
29/01/2015, 02:20 AM
Hey guys!
I just wanted to know if NPCs are affected by the server gravity.

I mean, i spawned a NPC on my server but without anything recorded for it to do. So it just stayed there with no function pretty much like an object... Then with admin command i throw the NPC in the air, but it didnt fall. Why?

Isnt there any way to make a NPC respect the gravity?

Deduction
29/01/2015, 09:05 AM
The only way I know is using a plugin to detect the Z coord of the ground where the NPC is and have it stop at that position when it is falling.

Mattos
29/01/2015, 01:35 PM
Nah, i thought that when a NPC is drop from the air, it would fall as a normal player, independent on his reconding

AIped
29/01/2015, 01:37 PM
nope it wont fall :( the regular sa-mp npc's will just follow recordings even if you blow up the car they are still driving..ow wait..you cant even blow up an npc's car damn.

Mattos
29/01/2015, 01:46 PM
:C thats bad for what i was trying to do


But wait, what if i record a npc falling? Will it just fall the place i recorded or can i set any position on the map and his action will be 'falling' ?

AIped
31/01/2015, 04:25 PM
an npc recorded as falling down could work but i guess you tried by now.
what are you trying anyway if i might ask ?