Only one out of two outcomes would occur
#4

Quote:
Originally Posted by Ox1gEN
Посмотреть сообщение
What?

I didn't quite understand you there? 'Add a variable to the dealership enum'? This is a script where I can create dealerships dynamically in-game, therefore it'd be obvious that some command of teleporting to each one would be useful.

And no, the default X Y Z of the dealership isn't set to 0 0 0 because as I've already explained it above and in my original post, it is created dynamically and I can teleport to bassicly all of them /BUT/ if I enter an invalid ID I'll get teleported to 0 0 0 because that ID doesn't have any teleportation coordinates,
I hope you understood me now?

Thanks for attempting to assist anyways
Yeah sorry about that, I misunderstood you a bit but part of my answer is still relevant (I think).

Add a "Created" variable to the enumerator (or however you're organizing the data for the dealerships) so that only dealerships which have been created (valid IDs) are able to be teleported to. So for example in the TP command you would add

Код:
if(DealershipInfo[id][Created] == true)
This would only allow the dealerships that you have created to be teleported to.
Reply


Messages In This Thread
Only one out of two outcomes would occur - by Ox1gEN - 12.12.2014, 16:50
Re: Only one out of two outcomes would occur - by Divergent - 12.12.2014, 16:56
Re: Only one out of two outcomes would occur - by Ox1gEN - 12.12.2014, 17:03
Re: Only one out of two outcomes would occur - by Divergent - 12.12.2014, 17:07
Re: Only one out of two outcomes would occur - by Virtual1ty - 12.12.2014, 17:08
Re: Only one out of two outcomes would occur - by Ox1gEN - 12.12.2014, 17:11
Re: Only one out of two outcomes would occur - by Divergent - 12.12.2014, 17:13
Re: Only one out of two outcomes would occur - by Ox1gEN - 12.12.2014, 17:16
Re: Only one out of two outcomes would occur - by PowerPC603 - 12.12.2014, 18:42
Re: Only one out of two outcomes would occur - by Ox1gEN - 13.12.2014, 06:18

Forum Jump:


Users browsing this thread: 2 Guest(s)