Forum

> > CS2D > Scripts > Script about hostages
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script about hostages

3 replies
To the start Previous 1 Next To the start

old Script about hostages

xNir
User Off Offline

Quote
Hi everyone,

Well, i would like to make a simple script which is about making hostages in game as the same way as building wall in construction mode by using the wrench. Besides, the current position x,y can be edited i mean the hostage can be in the middle of 2 tiles. However, i don't know how to start with this..

Thanks for reading.

old Re: Script about hostages

Rainoth
Moderator Off Offline

Quote
I can't quite get it.

You wanna select wrench and when you build something, instead of WALL a hostage appears ?

I think it's not possible to create cs2d hostages, at most you could make custom NPC and then make him act like hostage, but it's a lot of work I think.

old Re: Script about hostages

DC
Admin Off Offline

Quote
Impossible. There are no commands to spawn hostages. They are meant for cs_ maps only and they are only spawned by entities in standard game mode. There is no other way to spawn them.

It could lead to problems with the game logic when you would be able to randomly spawn hostages.

old Re: Script about hostages

xNir
User Off Offline

Quote
user Rainoth has written
I can't quite get it.

You wanna select wrench and when you build something, instead of WALL a hostage appears ?

I think it's not possible to create cs2d hostages, at most you could make custom NPC and then make him act like hostage, but it's a lot of work I think.


Ok, thanks for replies, i'm gonna try this way.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview