[Command] show

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

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

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!"
Last edited by Raddeck on Wed Jun 15, 2022 5:20 pm, edited 1 time in total.
Reason: Added 1 example
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply