Forum

> > Stranded II > General > Enemy soldier and possible stealth
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Enemy soldier and possible stealth

2 replies
To the start Previous 1 Next To the start

old Enemy soldier and possible stealth

LavaBall
User Off Offline

Quote
I've been thinking along the lines of Far Cry esque game where you have missions and you can stealth towards enemies, Is it possible that an NPC Attacks you and how?

If you've played Far Cry then you know what I am talking about, A guy who has been stranded on an island and doing missions and such and has enemy soldiers and alot of stealth gameplay, So is it possible to do this in Stranded 2?
Atleast I hope you can make an NPC Who fires at you and btw I am not an expert on programming so I won't go far on scripting especially huge lines of code

But I'l try to make missions as such where you have to go to A to B Or get a package and activates trigger X(Exit trigger or opens a door/advances plot)

BTW I think I know how to remove hunger, Thirst and sleeping so thats a start.

old Re: Enemy soldier and possible stealth

DontKnowToScript
User Off Offline

Quote
i know far cry,you can make someone shoot at you by the behaviour=standandshoot.but i dont know if you can make you can open a door with collecting/getting near something.i know only model=change

old Re: Enemy soldier and possible stealth

humer
User Off Offline

Quote
of course you can open a door by activating a trigger. Just put this palisade door on your map, place a trigger nearby and write this into it.
1
2
3
on:trigger {
	event"toggle","object",ID;
}

ID is the ID of the palisade door which it has on the map.
You just have to set the trigger as you want (radius and so on).
Problem is that the door will be open at startup just write the same code into global map script. Another problem is that you can open the door also by pressing button [E] so you have to delete or to overwrite the definition script with s2 cmd def_free or s2 cmd def_override.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview