Blockland Forums > Modification Help

Objects that emit a player detecting radius

Pages: (1/4) > >>

Obibital:

I'm in the middle of making a new gamemode, and I've stumbled on a bump in the road for the first time so far. I'm trying to find a way to have a block that an administrator can place; say, in a building. And it will create a circular zone around it that can alter a client variable when said player enters the zone.

I know similar things have been done, but at the moment I simply cannot find them, any ideas?

otto-san:

Triggers?

Obibital:

I was told about those, but don't they have to be stepped on to activate?

I'm planning on the block to be placed in a building, and upon entering the building you will gain radiation. I don't want the player to have to activate the block for it to start to effect variables.

Think of it as a radioactive zone.

otto-san:

Reminds me of Fallout!


Yeah, triggers. Triggers are what help zone bricks do what they do, I'm pretty sure.

I can't help you much with how they work though, all I know is that on TGB, you assign the trigger a class then you have class::onEnter(%this, %obj)

Obibital:


--- Quote from: otto-san on June 09, 2011, 10:27:10 PM ---Reminds me of Fallout!


Yeah, triggers. Triggers are what help zone bricks do what they do, I'm pretty sure.

I can't help you much with how they work though, all I know is that on TGB, you assign the trigger a class then you have class::onEnter(%this, %obj)

--- End quote ---

Thanks, I'll keep looking around then. And yes, it's going to be a Post Nuclear RPG

Pages: (1/4) > >>

Go to full version