Hey Guys,
I'm currently working on a map that floods once a button is pressed. So I have a big water tile thats set to be an elevator and once the button is pressed the elevators speed is set from 0 to 0.5, making the water rise. To kill people in the water I used the GibMeArea from Subway and copied that portion out of the Script from Subway. I do not have any idea or any experience with how scripting in map editor works though . Right now the rising water lacks dramatic effect, so if anyone on here knows how to trigger screenshake like the kind that happens when a train passes through on subway and also how to end screenshake with another trigger i would really appreciate that.
P.S: I've tried to copy the screenshake portion out of the script of subway too, but that didn't work for me since I did not understand wich object or trigger correspondet to that portion of the Script.
any help is appreciated!!
Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Activating ScreenShake once a Trigger is activated
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
-
- Meatbag
- Posts: 4
- Joined: Sat Nov 26, 2022 1:10 am
public void ShakeCamera(TriggerArgs args) { Game.PlayEffect("CAM_S", Vector2.Zero, 1, 1000); }1 = intensity, 1000 = length in ms
Put the method name ShakeCamera inside a ScriptTrigger or any trigger of your choice inside the script method in properties,
then you're free to use it.
0 x