Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Easy FPS Editor v1.6

Simple way to create an old-school First Person Shooter! · By JessicoChan

How to execute the player command in a script called using the "bind" command

A topic by yugi yanagui created Aug 02, 2023 Views: 179 Replies: 3
Viewing posts 1 to 3

I wondered if I could create a script that mimics the map display feature used in Flaw detection. It is a "dash button" that increases the player's movement speed when pressed.

I created a test program named test.script by inserting "bind q test" at the beginning of Menu.script as in Flaw detection. And it worked fine, test.script would run anytime I pressed the Q key.

However, while commands such as displaying text, displaying images, and decreasing the player's health worked, I encountered a screen freeze when I added commands such as "player speed", "player move", and "player retro". Are these commands not suitable for use in scripts called with the bind command?

Developer

You can't change player speed during gameplay nor can you make player move without interaction from keyboard.

thank you. I would like to think of another way to use it.

i think you can make a script that changes player speed and then changes it back to normal after 1/2 second

idk tho if i try to fsm/script the game just crashes/freezes so idk