NPC and Gravity - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: NPC and Gravity (
/showthread.php?tid=560541)
NPC and Gravity -
Mattos - 29.01.2015
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?
Re: NPC and Gravity -
Deduction - 29.01.2015
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.
Re: NPC and Gravity -
Mattos - 29.01.2015
Nah, i thought that when a NPC is drop from the air, it would fall as a normal player, independent on his reconding
Re: NPC and Gravity -
AIped - 29.01.2015
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.
Re: NPC and Gravity -
Mattos - 29.01.2015
: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' ?
Re: NPC and Gravity -
AIped - 31.01.2015
an npc recorded as falling down could work but i guess you tried by now.
what are you trying anyway if i might ask ?