Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Is it possible to teleport an entity instead of the player?

Author
Message
bruce3371
14
Years of Service
User Offline
Joined: 4th Aug 2010
Location: Englishland
Posted: 8th Oct 2010 19:53
I'm currently in the process of building a 'bonus' level which explains some of the back story of my Seclusion WIP.

What I would like to do is this;

SETUP;

'Teleporter In' entity on one bench, small entity with 'Teleporter Out' script on other bench.


SEQUENCE;

'Teleporter Out' entity placed on top of 'Teleporter In' entity by player.

'Teleporter Out' entity appears on bench which has small entity with 'Teleporter Out' script on it.

'Teleporter Out' entity replaces small entity with 'Teleporter Out' script as true 'Teleporter Out' entity.

Basically, what I'm trying to achieve is to have an entity teleported across a level, where it replaces the 'Teleporter Out' entity, so that the player can then teleport after it.

I hope this makes sense! If it does make sense, is it possible?

Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 8th Oct 2010 20:51
As far as I know there is such an action where you can move an object instantly to a certain spot.

It would be a bit tricky to make it work,but I don't see why not.

If I were you I'd write down some ways of achieving it.

For example (just theoretically) :

1.Place a triggerzone over a dummy teleporter model and make a script for it to indicate if ANY entity is within zone or a certain radius to change a variable from 0 to 1 for example.

2.In the entity you wish to be teleported's script add a condition to check if the variable is equal to 1 , and then execute a moving command to some spot.

Your basic commands will be :

ANYFURTHER=X is true when no within X quarter tiles
ANYWITHIN=X is true when any other entity moves within X quarter tiles
MOVEBACK=X move the entity back by X units
MOVEFORE=X moves the entity forward by X units
MOVEUP=X moves the entity up by X units

and of course the variable conditions and actions.

Login to post a reply

Server time is: 2024-11-24 19:42:45
Your offset time is: 2024-11-24 19:42:45