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 / Can Flak be classed as an entity?

Author
Message
unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 24th Jan 2013 00:34 Edited at: 24th Jan 2013 01:17
Hi everyone,

I am trying to add more features to make my game seem less linear and a little more 'free-roaming'.

As i was feeding my daughter her bottle, i was thinking about different methods of teleportation within FPSC. I thought about using a weapon to shoot a projectile; then teleporting to that projectile. Obviously, I would need the projectile to be intact for this to work (ie, not destroy itself on impact)

I wrote this VERY simple script,



Which works with entities that you can pick up and throw. So, you pick up a book for example, throw it in front of you and then press 'F', then you will instantly be on top of the book.

I would like to get this working with a weapon, but, my main worry is, FPSC doesn't recognise flak as an actual entity.

Does anyone have any thoughts on this?

Unfamillia

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 24th Jan 2013 15:12
I do not think that this is possible, but maybe you can modify a entity, so that it:
- link to plr
- if you press f it moves fore
- after some time it not moves
- you transport to it
- you pick it again up

maybe so:

I did not think that it work, but this is a good start

Corno


The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 26th Jan 2013 04:55
@Unfamillia
I looked at the code, and if flak uses a script, the engine transforms it into an entity. So to answer your question, yes, flak CAN be considered as an entity.

-TZK

Login to post a reply

Server time is: 2024-11-23 16:48:40
Your offset time is: 2024-11-23 16:48:40