SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 22/07/2017, 05:34 PM   #3351
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,334
Reputation: 426
Default Re: FCNPC - Fully Controllable NPC

u set a vehicle's health to 2147483647.0 and see what happens.
__________________
Kar is offline   Reply With Quote
Old 22/07/2017, 06:41 PM   #3352
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,135
Reputation: 241
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by Kar View Post
u set a vehicle's health to 2147483647.0 and see what happens.
Nothing special, but 2 000 000 000 works fine
AbyssMorgan is offline   Reply With Quote
Old 23/07/2017, 02:34 PM   #3353
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,135
Reputation: 241
Default Re: FCNPC - Fully Controllable NPC

Can you add option for disable FCNPC crash logs ?
AbyssMorgan is offline   Reply With Quote
Old 23/07/2017, 04:35 PM   #3354
jan123
Little Clucker
 
Join Date: Jun 2015
Posts: 4
Reputation: 0
Default Re: FCNPC - Fully Controllable NPC

Hi , any one can give me a simple example to shoot a player in random part of body or even outside of target player, I found this function

Code:
FCNPC_AimAtPlayer(npcid, playerid, bool:shoot = false, shoot_delay = -1, bool:setangle = true, Float:offset_x = 0.0, Float:offset_y = 0.0, Float:offset_z = 0.0, Float:offset_from_x = 0.0, Float:offset_from_y = 0.0, Float:offset_from_z = 0.0);
But i really dont know how much and where i need to add some values to x , y, z and dont know difference of offset_x and offset_from_x and ...

Also i guess i can use below funnction too but i dont know how ?

Code:
native FCNPC_TriggerWeaponShot(npcid, weaponid, hittype, hitid, Float:x, Float:y, Float:z, bool:ishit = true, Float:offset_from_x = 0.0, Float:offset_from_y = 0.0, Float:offset_from_z = 0.0);
jan123 is offline   Reply With Quote
Old 23/07/2017, 07:47 PM   #3355
Freaksken
Huge Clucker
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 464
Reputation: 194
Default Re: FCNPC - Fully Controllable NPC

Quote:
Originally Posted by jan123 View Post
Hi , any one can give me a simple example to shoot a player in random part of body or even outside of target player, I found this function

Code:
FCNPC_AimAtPlayer(npcid, playerid, bool:shoot = false, shoot_delay = -1, bool:setangle = true, Float:offset_x = 0.0, Float:offset_y = 0.0, Float:offset_z = 0.0, Float:offset_from_x = 0.0, Float:offset_from_y = 0.0, Float:offset_from_z = 0.0);
But i really dont know how much and where i need to add some values to x , y, z and dont know difference of offset_x and offset_from_x and ...

Also i guess i can use below funnction too but i dont know how ?

Code:
native FCNPC_TriggerWeaponShot(npcid, weaponid, hittype, hitid, Float:x, Float:y, Float:z, bool:ishit = true, Float:offset_from_x = 0.0, Float:offset_from_y = 0.0, Float:offset_from_z = 0.0);
We could add a parameter that targets a specific bodypart.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.
So if someone does reply and tries to help you, be grateful.


Includes:Filterscripts:Screenshots and Videos:Tutorials:Works in progress:
FCNPC A.I.Adminhelp (outdated)Leatherface/Jason Voorhees/Michael MyersSpeedometerSingle-player-like Mission
Freaksken is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Controllable NPC Lorenc_ Includes 101 02/06/2014 06:08 AM
[Plugin] FCNPC - Fully Controllable NPC sa-mp 0.3x R2 [LCK]Chris Plugin Development 82 16/05/2014 02:16 PM
Controllable HighPitchedVoice Scripting Help 5 25/05/2012 09:38 PM
[?]New SZR fully controllable NOS system Qeux Help Archive 3 17/03/2011 02:24 AM
Controllable NPC Andreq Русский/Russian 5 25/10/2010 07:57 AM


All times are GMT. The time now is 02:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.