Forum

> > CS2D > Maps/Editor > Tileset Pictures & Trigger_If
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Tileset Pictures & Trigger_If

5 replies
To the start Previous 1 Next To the start

old Tileset Pictures & Trigger_If

Man Of Steel
User Off Offline

Quote
hey guys,

Its possible that we can take any tile Image? (Not all Tile set image together) only 1 tile (ID), i.e 1,2 .... 200.

_____________

And how to use Trigger_IF?, Because i has many time saw in Fws.Jail map.editior

Does Maybe its very usable?

old how use?

Man Of Steel
User Off Offline

Quote
Hey ye,
But how its use, idk?
Can anyone tell me how use it
Because i saw in Jail map

old Re: Tileset Pictures & Trigger_If

DC
Admin Off Offline

Quote
You need at least 3 entities for a trigger_if:

• A trigger, e.g. cs2d entity trigger_use
• cs2d entity trigger_if
• Something which should be changed (enabled/disabled) like a cs2d entity func_dynwall or a cs2d entity env_sound, cs2d entity env_sprite, ...

Setup:
• the entity you want to change (like sound or dynwall): Enter a name in its name field e.g. "myentity"
• trigger_if: enter a name e.g. "mycondition" and in the trigger field enter "myentity" so it triggers your entity
• trigger_if: choose a condition to be checked or enter a custom boolean Lua expression to be evaluated. Only if the condition/expression is true, "myentity" will be triggered/changed
• trigger_use: enter "mycondition" in the trigger field so it triggers the trigger_if (which then might trigger your other entity depending on the condition)

In case you only want to run Lua you only need a trigger of some kind and the trigger_if. In that case you don't care about the result of the Lua expression.

Note that cs2d cmd mp_luamap needs to be enabled if you're using trigger_if with Lua.
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview