ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Making two gulags enemies function

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  01:04:11  8 September 2018
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
 

Message edited by:
insanelazarez
09/08/2018 1:04:57
Messages: 1070
Making two gulags enemies function




---QUOTATION---


Hello guys,

I want to make a function to allow 2 gulag names to become enemies.

This function must be used on logic, like this...

on_timer = 7000 | nil %=make_2_gulags_enemies(mil_freedom:mil_whatever_stalker)%


So it must be something like...

function make_2_gulags_enemies(actor, npc, p)

if p and p[1] and p[2] then

local 1st_gulag = p[1]
local 2nd_gulag = p[2]

if 1st_gulag and 2nd_gulag then

HUHHHHHHHHHH... yeah... maybe..???

1st_gulag:set_relation(game_object.enemy, 2nd_gulag)
2nd_gulag:set_relation(game_object.enemy, 1st_gulag)

I think the following approach would be better

xr_gulag.setGulagEnemy(1st_gulag, 2nd_gulag)
xr_gulag.setGulagEnemy(2nd_gulag, 1st_gulag)

What is needed is to track all gulag names in the game ...

local smarts

for smarts = 1, 65535 do

local section_name = "smart_terrain"

Shit, its not the end of the world, but i can see it from here...




end


end

end

So, any idea?

Thanks in advanced.



---END QUOTATION---

 
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.