Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Got something in the scripting changed?

I used a simple script in my Hub Level, to teleport the Player to different points on the map.

It allways worked, but after converting the maps it just crashes the game.

Script:

if $global.value == 1 {

player teleport 4 22

}

if $global.value == 2 {

player teleport 19 4

player rotation 0 180

}

map return

(1 edit)

Ok, i got it. Since the last Update there is a Z coordinate i have to put in.


Edit:

Okay....looks like its something else too.

In an other map i use a Teleport and it crashes even with the Z coordinate.

player teleport 16 30 0

player rotation 0 90

map return

It's a good idea to try removing some lines and see what causes the crash.

It might be that it's not a teleport thing. It looks fine.

I tried a new map with a barebones Script.

It does not crash but it freezes and i have to alt+F4 out of it.


player teleport 16 30 0

map return


I have no clue what to try now.

It would be nice if they would finally write the manual, including the script part...  :/

You can find most of it in the EFPS wiki

https://ragnarrandom.com/uefpsew/index.php/Old_Manual_Scripting