Get your own free workspace
View
 

ChangeActor

Page history last edited by Gamemaster 3 years, 11 months ago

 

ChangeActor

Usage:

                ChangeActor(Actor, ActorID)

Description:

The ChangeActor command allows you to change the actual actor template an actor instance is based on. For instance, you could turn a vampire into a bat and vice versa. The actor's hair, clothes, face etc. will not be lost in the transition, but its gender may change if its current gender is not possible as the target actor.

The ActorID parameter specifies which actor template the actor should become. You can find an ActorID using ActorID or ActorIDFromInstance.

Example:

                Function Main()
                        Player = Actor()

                        // Turn the player into a wolf
                        OldID = ActorIDFromInstance(Player)
                        ID = ActorID("Wolf", "Critter")
                        ChangeActor(Player, ID)

                        // Wait 10 seconds
                        DoEvents(10000)

                        // Turn him back into whatever he was before
                        ChangeActor(Player, OldID)

                        Return()
                End Function

Comments (0)

You don't have permission to comment on this page.