English how to make objects loadmap

7 replies
Goto Page
To the start Previous 1 Next To the start
10.09.11 07:33:03 pm
Up
JoeldaAlcoholic
User
Offline Off
iv been trying to make a script that when you press E (or action button) on a object/unit so that it then loads to another map, well im having truble with the whole thing... please help me...
10.09.11 07:45:21 pm
Up
HudaJan
Super User
Offline Off
on:use
s2 cmd loadmap
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
12.09.11 03:07:57 pm
Up
JoeldaAlcoholic
User
Offline Off
thanks... now how do i make the loadmap keep my items?
12.09.11 03:39:27 pm
Up
HudaJan
Super User
Offline Off
loadmap 1,1,1,1;

or paly along with the numbers, but if you want only to keep your items, replace 1s with 0s except for the second 1
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
13.09.11 08:55:35 am
Up
JoeldaAlcoholic
User
Offline Off
user HudaJan has written:
loadmap 1,1,1,1;

or paly along with the numbers, but if you want only to keep your items, replace 1s with 0s except for the second 1


thankyou a heap hudjan...

ok one more thing (last one i promise)
how do i make a script so when my character goes off a spesific map side that map loads a spesific map
14.09.11 05:52:38 pm
Up
HudaJan
Super User
Offline Off
Not sure if I understand you properly, you mean if the player leaves the island in one direction, it would load different map, than if he leaves in other direction?
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
17.09.11 11:31:04 am
Up
JoeldaAlcoholic
User
Offline Off
yes basicly, north goes to Map1, south goes to Map2, east goes to Map3, west goes to Map4 however the corners dont load anything... but if you are in a corner
it loads the boundry your closest too...
17.09.11 11:57:29 am
Up
DC
Admin
Offline Off
you have to check the coordinates of the player.

untested
Code:
1
2
3
4
if (getx("unit",1)<0) { loadmap ...; }
if (getz("unit",1)<0) { loadmap ...; }
if (getx("unit",1)>mapsize()) { loadmap ...; }
if (getz("unit",1)>mapsize()) { loadmap ...; }


you probably have to multiply mapsize() with some value to make it work properly. I'm not sure. don't want to try it. or you could simply test it (print the return values of getx and getz to the console when reaching the end of the map) and insert these values instead of mapsize()
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 Next To the start