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 / Moving a character to a random position

Author
Message
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 23rd Nov 2009 22:54 Edited at: 24th Nov 2009 13:52
I want to move a character to one of 4 random positions when stepping in a trigger zone. I'm half way there but how do I specify to use a particular entity and not the thing that's running the script?



The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 24th Nov 2009 12:41
Are you trying to teleport a player or enitity character?
If you are trying to move a enitity i am shure that "Plmoveto"
is wrong....
Please do explaine what you are trying to move....






-Massap2

Beacause massa is the master!
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 24th Nov 2009 13:53 Edited at: 24th Nov 2009 13:54
'plrmoveto' was wrong as I am trying to move a character entity not the player, I've changed the first posts code now to reflect that.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Nov 2009 01:46
The only "teleport" commands available in vanilla FPSC are for the player.

(If I could think of a solution using PB, I'd supply it, but I'm a little brain dead at the moment to think of one. )


The one and only,


Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 29th Nov 2009 21:01
Thanks Plystire, hope your brain kicks into gear for a solution.



Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 29th Nov 2009 21:42 Edited at: 29th Nov 2009 21:48
Quote: "I want to move a character to one of 4 random positions when stepping in a trigger zone. "


Quote: "The only "teleport" commands available in vanilla FPSC are for the player. "


So, if you cannot move the character, then emulate him. (make copies)
If you had the four instances of the character set up to spawn at their locations then a simple spawn destroy would do.
Then you would simply spawn the proper one based on a random=x condition.
Four of those in the same state with each one representing the activation of the proper character location to spawn.
So whichever random=x hits first would spawn the new character at the right location and then move out of that state and to one that then destroys the host.
The health adjustment could be handled as well by using a global variable and then adjusting the new characters health based on that variable.

I think it could be done in Vanilla FPSC with a little effort.

   Conjured Entertainment

 WARNING: Intense Madness

Login to post a reply

Server time is: 2024-11-25 05:47:36
Your offset time is: 2024-11-25 05:47:36