Larian Banner
Previous Thread
Next Thread
Print Thread
teleport upon walking on pressure plate #628731
09/10/17 01:20 PM
09/10/17 01:20 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
HI I use: PUZ_Raanaar_PressurePlate_1_4 3e3e6912-6f0a-447c-8abc-1b2d6bad00a3

How do I Setup that it teleports Player if user steps on it? From my understanding OnUse doesnt work because i dont use it but step on. Any idea?

thx

Re: teleport upon walking on pressure plate [Re: monzua] #628742
09/10/17 01:58 PM
09/10/17 01:58 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
And god please dont tell me to put a trigger above it - haha - that would result in so much work for me xD

Re: teleport upon walking on pressure plate [Re: monzua] #628744
09/10/17 02:10 PM
09/10/17 02:10 PM
Joined: Jun 2013
Posts: 655
Cromcrom Offline
addict
Cromcrom  Offline
addict

Joined: Jun 2013
Posts: 655
Put a trigger above it. That way, you are sure it won't work, and you won't know why, while wasting hours into it. I tried it myself, it worked great ;-)


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Re: teleport upon walking on pressure plate [Re: monzua] #628745
09/10/17 02:11 PM
09/10/17 02:11 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
I understood I need to create an Event for "EventOn" to attach it to PUZZLE_PressurePlate. But how can I create an Event and how do I declare that I want to teleport _Player to specific Location?

Thanks!

Edit: Lol crom xD

Last edited by monzua; 09/10/17 02:12 PM.
Re: teleport upon walking on pressure plate [Re: monzua] #628753
09/10/17 02:22 PM
09/10/17 02:22 PM
Joined: Oct 2017
Posts: 78
United Kingdom
Branvex Offline
journeyman
Branvex  Offline
journeyman

Joined: Oct 2017
Posts: 78
United Kingdom
Could put an event trigger over the pressure plate then set its region bounds over the pressure plate. Then a teleport trigger somewhere. Then in a script:

Code:
IF
CharacterEnteredTrigger(your-CHARACTERGUID,yourtriggerGUID)
THEN
TeleportTo(your-CHARACTERGUID,your-teleport-TRIGGERGUID);

Re: teleport upon walking on pressure plate [Re: monzua] #628765
09/10/17 02:51 PM
09/10/17 02:51 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
yes I can do that but thats bad practice I guess if there is already a script in place from the item to execute Code -I just dont know how to do it.

Re: teleport upon walking on pressure plate [Re: monzua] #628776
09/10/17 03:07 PM
09/10/17 03:07 PM
Joined: Dec 2013
Posts: 872
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 872
I haven't used that specific item but I would expect it to work similarly to the pressure plate items I used. In the scripts property of the plate, make sure PUZZLE_PressurePlate is attached. Then look at the properties. You will see EventOff and EventOn input variables. You can enter text strings there and whenever they are activated you will get an associated CharacterItemEvent event to fire.

For instance, my pressure plates had 'activate' for EventOn and 'deactivate' for EventOff. I would catch the plates triggering with:

Code:
IF
CharacterItemEvent(_, ITEMGUID_PUZ_PressurePlate_Floor_Left_891a0d4f-4ced-446d-ad8c-fa34b6b4c086, "activate")
THEN
...

IF
CharacterItemEvent(_, ITEMGUID_PUZ_PressurePlate_Floor_Left_891a0d4f-4ced-446d-ad8c-fa34b6b4c086, "deactivate")
THEN
...


The first argument is the character GUID, which I did not need, but you could grab that value and use it to teleport the character that activated the plate.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: teleport upon walking on pressure plate [Re: monzua] #628817
09/10/17 04:04 PM
09/10/17 04:04 PM
Joined: Sep 2017
Posts: 159
M
monzua Offline OP
member
monzua  Offline OP
member
M

Joined: Sep 2017
Posts: 159
thanks <3


Moderated by  Dom_Larian, Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2