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.
Need help
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
Need help
Hello, I'm from Russia, so sorry for my English, if something goes wrong. I would like to create a map with controllable robots, for this I need to make a zone and when a player enters this zone and presses certain buttons on the keyboard, then certain triggers are activated. And can I still make it so that the design will be displayed horizontally when I click the button? In this topic, I would like to see a script template that reads the data from the keyboard in a certain area. If it can be done without a script, only triggers then how to do it?
0 x
-
- Superfighter
- Posts: 62
- Joined: Sun Mar 20, 2016 3:40 am
- Title: Custom map lover
- Started SFD: PreAlpha 1.6.4
- Location: Vietnam
- Gender:
The script in the tutorial checks the player's movement and action ingame. It doesn't read keyboard input.
0 x
- hyper copter
- Superfighter
- Posts: 70
- Joined: Thu Aug 31, 2017 11:38 am
- Title: Hello i'm happy to say i'm sad
- SFD Account: Hyper
- SFD Alias: Hyper
- Gender:
- Age: 13
It can read what keys a specific action is binded to though. For instance if set my key bindings so that the "J" key punches, The tutorial reads that and inputs "Press " J" to punch". I ain't no coder though. Is that what you meant, @Hyrin?
0 x

- JakSparro98
- Superfighter
- Posts: 440
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 20
The tutorial is catching player input ingeniously as the ScriptAPI can record most of the player actions (running, sprinting, diving, punching, etc...) but without a native input reading it's only that; text displaying the key you need to press is handled with a special string parsing, so you can write "press [attack_key] to attack" for example and the text within square brackets will be turned into your current punch key, in a few words, keystrokes reading is currently still far from being made.hyper copter wrote: ↑Mon Feb 11, 2019 1:56 pmIt can read what keys a specific action is binded to though. For instance if set my key bindings so that the "J" key punches, The tutorial reads that and inputs "Press " J" to punch". I ain't no coder though. [..]
0 x
Who is online
Users browsing this forum: No registered users and 1 guest