setPosition - not working

Have trouble running Legend of Grimrock 2 or do you have questions about the purchasing options? Look for help here.
Post Reply
User avatar
RMariano
Posts: 287
Joined: Mon Apr 02, 2012 1:16 pm
Location: Florida, USA
Contact:

setPosition - not working

Post by RMariano »

Am I doing something wrong? Console is working.
Regards,

RMariano
User avatar
Sol_HSA
Posts: 681
Joined: Fri Mar 02, 2012 3:10 pm
Location: Nowhere whenever
Contact:

Re: setPosition - not working

Post by Sol_HSA »

RMariano wrote:Am I doing something wrong? Console is working.
What did you try, what was the expected outcome, what happened?
Reminder: moderators (green names) don't work for almost human. | http://iki.fi/sol/ - My schtuphh..
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: setPosition - not working

Post by JohnWordsworth »

The setPosition() command now has an extra parameter as it also requires the 'height' within a given level (some levels have multiple floors on them). I forget the exact parameter order though - so be careful not to accidentally teleport to a part of the game that will spoil it!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
RMariano
Posts: 287
Joined: Mon Apr 02, 2012 1:16 pm
Location: Florida, USA
Contact:

Re: setPosition - not working

Post by RMariano »

Sol_HSA wrote:
RMariano wrote:Am I doing something wrong? Console is working.
What did you try, what was the expected outcome, what happened?

party:setPosition(, , ,)


Also, a suggestion; please consider making autosave an option.
Regards,

RMariano
User avatar
RMariano
Posts: 287
Joined: Mon Apr 02, 2012 1:16 pm
Location: Florida, USA
Contact:

Re: setPosition - not working

Post by RMariano »

JohnWordsworth wrote:The setPosition() command now has an extra parameter as it also requires the 'height' within a given level (some levels have multiple floors on them). I forget the exact parameter order though - so be careful not to accidentally teleport to a part of the game that will spoil it!
How about a sample of the command??
Regards,

RMariano
User avatar
RMariano
Posts: 287
Joined: Mon Apr 02, 2012 1:16 pm
Location: Florida, USA
Contact:

Re: setPosition - not working

Post by RMariano »

Anybody???
Regards,

RMariano
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: setPosition - not working

Post by Skuggasveinn »

The new syntax for setPosition is
SpoilerShow
party:setPosition(x,y,facing,height,level)
The information you see when using debug=true is x,y,facing,level so you need to insert the height you want into the command when *cough*cheating*cough* ;)
0 is ground floor, and it can go up from there to 7, but it can also go down from 0 to -7, there isn't a good way to see at what height your party is, so safe the game before in case you teleporting your party into the ground :D
Skuggasveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
RMariano
Posts: 287
Joined: Mon Apr 02, 2012 1:16 pm
Location: Florida, USA
Contact:

Re: setPosition - not working

Post by RMariano »

Thank you..... actually dissecting for a timely in-depth review. :)
Regards,

RMariano
Post Reply