ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
Marker on NPC

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  12:20:43  17 December 2010
profilee-mailreply Message URLTo the Top
Dielos
(Novice)
 
On forum: 05/06/2007
Messages: 21
Marker on NPC

Hello,

How can I place a marker on a specific NPC which follows him and shows specific information (target st, name, health) through script?

I have been looking through the game scripts, but haven't fund anything that helps or which I could understand...

Thanks!
  12:52:10  17 December 2010
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433
level.map_add_object_spot(object's id, spor id, pop-up text)
  13:34:47  17 December 2010
profilee-mailreply Message URLTo the Top
Dielos
(Novice)
 
On forum: 05/06/2007
Messages: 21
Thanks!

Where do you all get this info on commands and what they do? I'm having a hard time finding these things and can't find any clues in the wiki or forums. Do you just browse the game files and adapt it? I'm having dificulties browsing through all the files and scripts and understanding what they do.

I'm no programmer, and this might be a very good reason why I have so much trouble scripting in this game, but my biggest problem is not having any idea what I need to learn first to get started. I do understand the file structure of the game and how it works.

If I have to ask you questions about every stupid thing I'm trying to do you'll soon end quite sick of me!!!

So if anyone can give me a clue about this, I would be extremely thankfull! I'm starting to think that scripting in this game might be a bit too much for me, but I did manage in others, so I'm not sure if I should give up yet...
  13:53:10  17 December 2010
profilee-mailreply Message URLTo the Top
MacBradley
Senior Resident
 

 
On forum: 02/09/2009
Messages: 890

---QUOTATION---
Thanks!

Where do you all get this info on commands and what they do? I'm having a hard time finding these things and can't find any clues in the wiki or forums. Do you just browse the game files and adapt it? I'm having dificulties browsing through all the files and scripts and understanding what they do.

I'm no programmer, and this might be a very good reason why I have so much trouble scripting in this game, but my biggest problem is not having any idea what I need to learn first to get started. I do understand the file structure of the game and how it works.

If I have to ask you questions about every stupid thing I'm trying to do you'll soon end quite sick of me!!!

So if anyone can give me a clue about this, I would be extremely thankfull! I'm starting to think that scripting in this game might be a bit too much for me, but I did manage in others, so I'm not sure if I should give up yet...
---END QUOTATION---



There is a list of functions that are exported to LUA for scripting use in:

lua_help.script

Not much in the way of comments about what the fucntions do, or the parameters they require outside of variable types.
  13:59:38  17 December 2010
profilee-mailreply Message URLTo the Top
Dielos
(Novice)
 
On forum: 05/06/2007
Messages: 21
Thanks MacBradley! That's sure a start!!! I'm going to have to study that file good. I actually think I can understand it!
 
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.: Clear Sky Forum » Mod discussion
 

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


 

Copyright © 1995-2020 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.