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 / how do you pick up and throw objects

Author
Message
MrCrow
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Lost
Posted: 5th May 2006 03:53
im kinda new to the gaming industry and i dont know much scripting so could somone tell me how to grab and throw objects
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 5th May 2006 17:59
right click when you are near the object and left click to throw, there is no scripting needed

Keyboard not found!
Press any key to continue
Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 5th May 2006 21:20
Also make sure the object is a dynamic entity and has physics on.

http://www.gamefun4u.nl/index.html
GameFun4U, the ultimate funtainment. Cool Games and Resources for your own games.
MrCrow
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Lost
Posted: 10th May 2006 02:57
thank you
300 win mag
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: USA
Posted: 10th May 2006 04:03
i had no idea that this engen was able to do that

TAKEN a gane like pray in the making
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 11th May 2006 22:14
Make a dynamic object and have physics on. You can Right-Click to pick it up and left click to throw it, in both test game and the built game. You can also use many physics and forces such as Weight, Friction, Damage when thrown and a few more.

Tom

Rick M
18
Years of Service
User Offline
Joined: 10th Jan 2006
Location: Behind Bars
Posted: 13th May 2006 05:02
can any object be thrown, im pretty sure not, but just asking.

In Russia, Zombie Shoots You!
Me Self
18
Years of Service
User Offline
Joined: 7th Mar 2006
Location:
Posted: 13th May 2006 07:48
then whats to shoot it?

Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 13th May 2006 10:59
Rick M, not all objects can be thrown, large and character objects cannot be thrown but with the default script guns can be thrown

Keyboard not found!
Press any key to continue
Rick M
18
Years of Service
User Offline
Joined: 10th Jan 2006
Location: Behind Bars
Posted: 13th May 2006 20:23
ok thx evil star, but can small items. like lets say a pop can, be thrown?

In Russia, Zombie Shoots You!
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 14th May 2006 00:11
Yes, of course. Just about any non-character entity can be picked up and thrown, if the weight of it is reduced to a small amount.

Tom

Rick M
18
Years of Service
User Offline
Joined: 10th Jan 2006
Location: Behind Bars
Posted: 14th May 2006 01:12
Cool! just a stupid question, lets say i was making a game where you got super strong from like a zombie bite, and big objects like fridges and tables set the wieght to 1 pound, and then could you throw it at enemys and damage them, or are those player objects?

In Russia, Zombie Shoots You!
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 14th May 2006 02:14
I believe so but Tom or OnePost (if he is still among us) would probably know for sure.or Uman.Right click on whatever the entity in question is and toward the bottom there should be a setting that lets you adjust the damage if something comes in contact with the object.
If I am wrong abotu this I am sure someone will come along and slap me...again...lol.

FLa
Where you can find my demo:http://www.savefile.com/files/6970524
Rick M
18
Years of Service
User Offline
Joined: 10th Jan 2006
Location: Behind Bars
Posted: 14th May 2006 02:27
ok, thx!

In Russia, Zombie Shoots You!
Talairina
18
Years of Service
User Offline
Joined: 9th Jan 2006
Location: United Kingdom
Posted: 14th May 2006 05:18
Dont mean to hijack the thread but this question is sort of related. Ic added an entity (a chair) in to a small level and wish to use it smash some glass (I.e. pick up and throw the chat at a window.) Now no matter what setting's on Physic's I try it just bounces off.

Any idea of what setting's I should try or another way of working this out?

Tal

(Sorry again about the Hijack.)
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 14th May 2006 10:30
Tal, give it one strength and the chair should break it

I has returned, Your right (I made a floppy disk kill someone like that )

Keyboard not found!
Press any key to continue
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 14th May 2006 14:15
I has Returned,
Yes you are right! BUT the damage dealt to an enemy could also be dealt to the Player if it bounces off and hits them.

Tom

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 14th May 2006 14:23
Just like in real life...lol.

FLa
Where you can find my demo:http://www.savefile.com/files/6970524
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 14th May 2006 14:27
Ah, but not if, as Rick M said:
Quote: "game where you got super strong from like a zombie bite"

If the Player was super strong, then something as pitiful as a chair wouldn't cause them damage.

Tom

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 14th May 2006 14:59
I see.You have a point.

FLa
Where you can find my demo:http://www.savefile.com/files/6970524
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 14th May 2006 18:39
Yeah...
Hmm, i'll have to mess around with that concept for a bit. I'll post back here if I find anything.

Tom

Talairina
18
Years of Service
User Offline
Joined: 9th Jan 2006
Location: United Kingdom
Posted: 14th May 2006 21:12
Quote: "Tal, give it one strength and the chair should break it

I has returned, Your right (I made a floppy disk kill someone like that )"


Except this then allows the player to simply walk into the glass and break it. Ill try messing around alitle more with the concept and see if I can figure it out. Thanks for your reply.

Tal
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 14th May 2006 21:16
If you got bitten by a raioactive spider...er,zombie and had super strength you would just be able to walk through the glass.

FLa
Where you can find my demo:http://www.savefile.com/files/6970524

Login to post a reply

Server time is: 2024-11-22 09:07:05
Your offset time is: 2024-11-22 09:07:05