ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Npc map marker?

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  14:56:57  11 May 2012
profilee-mailreply Message URLTo the Top
the_marked_one
Senior Resident
 

 
On forum: 11/21/2010
Messages: 647
Npc map marker?

If i wanted to add the ability to mark a specific stalker on the map how would i go about doing it? dont need the ability to do it in game adding it into a script is fine as i just want to track an npc at this point
  18:06:49  11 May 2012
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349

---QUOTATION---
Npc map marker?

If i wanted to add the ability to mark a specific stalker on the map how would i go about doing it? dont need the ability to do it in game adding it into a script is fine as i just want to track an npc at this point
---END QUOTATION---



You would need to give him a unique name or story id then it is possible by script.
function mark_my_dude()
    local s_obj = alife():object("my_dudes_name")
    level.map_add_object_spot(s_obj.id, "green_location, "my_dude")
end

function mark_my_dude()
    local obj = level_object_by_sid(my_dudes_story_id)
    local s_obj = alife():object(obj:id())
    level.map_add_object_spot(s_obj.id, "green_location, "my_dude")
end

  00:03:38  12 May 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070
Vintar, a stupid question... where do you call the function 'mark_my_dude' from?

Please respond, level tasks?
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2022 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.