Sign in to follow this  
Followers 0
Joluk

Custom NPC

3 posts in this topic

Hello Community,

is it possible to give an object a healthbar? So you can attack an object, see how the health goes down (Boss health bar on top of the screen) and when it dies you can controll what happens next via quest.

Best regards

Joluk

Share this post


Link to post
Share on other sites
21 hours ago, Joluk said:

Hello Community,

is it possible to give an object a healthbar? So you can attack an object, see how the health goes down (Boss health bar on top of the screen) and when it dies you can controll what happens next via quest.

Best regards

Joluk

It seems that it is controlled by the quest

code ´s ,kill phase associated with a boss

to kill.

 

but now for objects i don ´t know.

there ´s the damagerecievier class

who can check object damage but it seems that melee and guns can ´t affect it.

I saw some generator turned off when you shoot on near gas cylinders,

when the player shoot the can, it explodes

and turn the generator off.

i saw this in Darkness below custom map

on this video:

It is at 3 minutes 15 sec in the video,

maybe you ´ll find it useful.

Edited by cr1m3

Share this post


Link to post
Share on other sites

Also i saw your comment on youtube,

i don ´t know if you saw my answer so.

 

There should be a presets folder in your 

project/data/presets and the "HumanAI.pre" 

(the script that control npc presets).

 

But if you don ´t have it in your map,

maybe the map was created before the devs added this script or maybe the latest

update removed it, anyway, you can copy the presets folder under :

C:\Program Files (x86)\Steam\steamapps\common\Dying Light Developer Tools\Template\data\presets

then, paste it in your project/data folder.

Make sure it is not under read only in file properties.

Also that windows folder options settings are showing file extentions.

Cause the HumanAI.pre have a "pre" extention but it is a readable scripting language.

Also you can edit it manually by browsing all strings and figure out all Variables and methods with changeable

values.

Also (easier) , you can use the devtool's preset tool window to edit this script via buttons.

But just reading the script while using the presets tool gives you all stuff.

Edited by cr1m3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0