Scripts / Multi landing zone scripts help

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 16th Dec 2016 12:31 Edited at: 16th Dec 2016 17:04
HI all, I'm trying to put together a few scripts so as when the player leaves a planet on the main map he/she arrives back at that planet on the main map not on the player start marker, 5- 6 areas in all this is what i have so far but am getting a "(" missing on line 5? near "if" anyone? The arrive_zone i have on a trigger over the start marker, the leave zone on a winzone on the planet to return to the main map where the zones are.




Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 16th Dec 2016 12:52
The first script, line 4 reads:

function_multi_arrive_zone_main(e

It should be ....

function_multi_arrive_zone_main(e)

You're missing a )

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 16th Dec 2016 16:21 Edited at: 16th Dec 2016 17:45
Omg thanks m8 lol that's what you get when you try to do a million things at once grr still doesnt transport the player to the zone1 marker *stamps feet* hmm is there a command to transportto"object" as apposed to ifused?
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Dec 2016 18:21
you can transport the player anywhere if you either know the co-ords or the object number to get some co-ords.

SetFreezePosition(x,y,z)
TransportToFreezePositionOnly()

i.e.
target_object = 5 --entity number of object to move to
SetFreezePosition(g_Entity[target_object]['x'],g_Entity[target_object]['y'],g_Entity[target_object]['z'])
TransportToFreezePositionOnly()
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 16th Dec 2016 19:09
That's really helpful small thanks, my own idea isn't an elegant as that ...

Multiple trigger zones using trabspirtinzobe with each one wrapped in an if statement so only the one that's active works.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 16th Dec 2016 19:09 Edited at: 16th Dec 2016 19:18
so could i do that for say systems 1-5 e.g player leaves the planet, then have the script on the start marker to say "if the planet was in system 1 to tp to a space station in the center of that system, if in system 2 to the space station in system 2 etc etc? If i can use entity numbers thats even better as ive used these before with your shop script reason im asking is each of the new maps ive made has 5 systems with 7 planets and a moon in each then i have to get my head around putting that together (scary) i've only just started to understand how to use math.random (im saying that alot cos i think its cool) pmsl
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Login to post a reply

Server time is: 2024-12-23 03:53:21
Your offset time is: 2024-12-23 03:53:21