FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   S.T.A.L.K.E.R. SoC Modding, Mapping and Editing (http://forums.filefront.com/s-t-l-k-e-r-soc-modding-mapping-editing-954/)
-   -   To force a Npc to stay always in the same place (http://forums.filefront.com/s-t-l-k-e-r-soc-modding-mapping-editing/381698-force-npc-stay-always-same-place.html)

insanelazarez October 16th, 2008 03:28 PM

To force a Npc to stay always in the same place
 
Hello guys,
I want to know if is possible to "force" one npc to stay always in the same place AND to make sure he ONLY use grenades (with the grenadier mod, of course), or a rpg? One example is the snipers in freedom base. They are always in the tower. Any idea?

Thanks.

Insanelazarez

Abandonator October 18th, 2008 06:53 AM

Re: To force a Npc to stay always in the same place
 
I know you can do it, you have to put them min "guard" mode/ animation,

but problem is, I don't know anymore where that was

jamie1992 October 18th, 2008 10:26 AM

Re: To force a Npc to stay always in the same place
 
custom_data = <<END
[smart_terrains]
none = true

[logic]
active = remark
trade = misc\xxxx.ltx (This bit is if he is a trader, if not dont add it)

[remark]
no_move = true
anim = guard
meet = meet
danger = danger_ignore

[danger_ignore]
ignore_distance = 100

[meet]
use = true
use_wpn = true
meet_talk_enabled = true
meet_state = ward
use_medkit = true

Stick this into a new LTX file and put that into Config>Scripts and name the file xxxx (xxxx being what you want)

Then in the all.spawn section where you spawn him add this to his ; cse_alife_object properties section like so.

; cse_alife_object properties
game_vertex_id = 61
distance = 3.5
level_vertex_id = 42599
object_flags = 0xffffffbf
custom_data = <<END
[logic]
cfg = scripts\xxxx.ltx
END

Not sure about the nading but this is a crude way to get an npc to stay still without a Smart Terrain however cant guarenntee that he wont move if he goes into combat.

Hope that helps. :)

dezodor October 18th, 2008 12:24 PM

Re: To force a Npc to stay always in the same place
 
Thats ok, but only until something happens (enemy appears). Then npc will move away, and stop somewhere else again.

add the custom npc to the gulag scripts, make way move and way look position for him (way move, a waypoint that he will follow, if there is only one, he will stay in 1 place, and way look is his looking point, where the npc will be orientated)

i can suggest to bookmark this page:
Category:Articles - Mod Wiki

we and many other modders added a lot of useful articles.

insanelazarez November 7th, 2008 11:37 PM

Re: To force a Npc to stay always in the same place
 
Sorry for the late reply guys. I will try that for sure. Thanks.


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.