[Command] show
Posted: Sat Nov 06, 2021 7:09 pm
Actor.show(x,y,z)
USE:
Show/Move this actor on screen.
If the actor is invisible it will pop up at the optionally given coordinates.
If the actor was already visible, it will move to the new location.
If no path can be found it will teleport, otherwise it will walk.
If the actor is currently walking or doing any animation this will be cancelled first.
x,y,z can be float variables.
TYPE: Command, Reference
RETURNS: /
THEME: Actor Loading, Scenes
COMPARE: hide, getSpecific, generatePerson, generatePersonTemporary, getPerson
EXAMPLE:
// For a specific location
EXAMPLE2:
// For a random location, you can use:
USE:
Show/Move this actor on screen.
If the actor is invisible it will pop up at the optionally given coordinates.
If the actor was already visible, it will move to the new location.
If no path can be found it will teleport, otherwise it will walk.
If the actor is currently walking or doing any animation this will be cancelled first.
x,y,z can be float variables.
TYPE: Command, Reference
RETURNS: /
THEME: Actor Loading, Scenes
COMPARE: hide, getSpecific, generatePerson, generatePersonTemporary, getPerson
EXAMPLE:
// For a specific location
Code: Select all
NewGuy = generatePerson()
NewGuy.dress()
NewGuy.show(-30,-10,0) // show at entrance door
"<NewGuy.Name> showed up at the entrance."
NewGuy.show(0,0,0) // moved to the middle of the room
EXAMPLE2:
// For a random location, you can use:
Code: Select all
NewGuy = generatePerson()
NewGuy.dress()
NewGuy.show()
"<NewGuy.Name> showed up!"