Jump to content

Home

NPC Survival - mission objective


Kengo

Recommended Posts

Posted

Does anyone know how to set an NPC so that their survival is an essential mission objective, ie if they die then the mission is automatically failed?

Posted

Create and compile the script:

set ( /*@SET_TYPES*/ "SET_MISSIONFAILED", /*@MISSIONFAILED*/ "MISSIONFAILED_LUKE" );

Then give your NPC this:

 

key: deathscript

value: path/scriptname (of that script above)

 

Note: this will display "Luke has died. Mission Failed". If you wanna display different text, you must edit sp_ingame.sp file in base/strip.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...