Blaster Posted October 9, 2002 Share Posted October 9, 2002 Is it possible to somehow make an NPC open a door but ony if they're health reaches a certain damage amount. Link to comment Share on other sites More sharing options...
alanuk Posted October 9, 2002 Share Posted October 9, 2002 you probly can but u will have to do alot of scripting!! Link to comment Share on other sites More sharing options...
Blaster Posted October 9, 2002 Author Share Posted October 9, 2002 Well any tips on where to start would be handy. Link to comment Share on other sites More sharing options...
dvader28 Posted October 9, 2002 Share Posted October 9, 2002 do u mean they're only able to open the door if they're health is at a certain amount, or when it gets to an amount, they run and open a door? Link to comment Share on other sites More sharing options...
Blaster Posted October 9, 2002 Author Share Posted October 9, 2002 I mean say a reborn gets to 60 health out of a possible 200 hitpoints. Then at 60 points the door will automatically open. Link to comment Share on other sites More sharing options...
dvader28 Posted October 9, 2002 Share Posted October 9, 2002 hmmm Link to comment Share on other sites More sharing options...
MilesTeg Posted October 9, 2002 Share Posted October 9, 2002 don´t know if this helps, but I did a little research on this and found this: from yavin_final.bsp: "classname" "NPC_Desann" "angle" "270" "NPC_targetname" "real_desann" "targetname" "real_desann" "origin" "-4776 4548 -1544" "spawnscript" "yavin_final/setupdesann" "NPC_target" "run_cin35_spawner" } in setupdesann.ibi you will find the line set ( /*@SET_TYPES*/ "SET_PAINSCRIPT", "yavin_final/desann_hurt" ); wich leads to desann_hurt.ibi: rem ( "comment" ); if ( $get( FLOAT, "SET_HEALTH") < 200$ ) { set ( /*@SET_TYPES*/ "SET_PAINSCRIPT", "NULL" ); set ( /*@SET_TYPES*/ "SET_MUSIC_STATE", /*@MUSIC_STATES*/ "DM_BOSS" ); } This means: If Desanns health goes below 200 points the DM_BOSS music will be played. Should be easy for you now to replace a few lines Link to comment Share on other sites More sharing options...
dvader28 Posted October 9, 2002 Share Posted October 9, 2002 nice one...yeah, if you replace the music bit with a simple go to waypoint_navgoal script, you've got it made. Link to comment Share on other sites More sharing options...
Blaster Posted October 9, 2002 Author Share Posted October 9, 2002 Thanks for the feedback I'll give it a go! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.