Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   canbecarried; (https://forums.graalonline.com/forums/showthread.php?t=134262172)

gwFCCtennis 02-20-2011 09:39 PM

canbecarried;
 
I was messing around with the command
PHP Code:

canbecarried

but once I pick up the object then throw it, the image disappears, and if you walk to wear you throw it it shows the image is still there just invisible.

How do you fix it so that when you pick it up and throw it that the image doesn't disappear?

fowlplay4 02-20-2011 09:47 PM

Default carrying system is very inflexible, you'll have to go custom to do anything exciting.

gwFCCtennis 02-20-2011 09:55 PM

Quote:

Originally Posted by fowlplay4 (Post 1632159)
Default carrying system is very inflexible, you'll have to go custom to do anything exciting.

I thought so, but I can't think of how to start off.

fowlplay4 02-20-2011 11:39 PM

Well here's how I would consider doing it...

- Make a carryable class.
- Add onActionGrab functionality
- Set player's ani to a lifting animation and store the image name of the object somewhere for use in the animations.
- Have a system to keep the player's animation set to carry with the proper image.
- Check if the player pressed the key to throw the object, throw the object if necessary.
- Perform whatever needs to be done to make the object lay on the ground again.


All times are GMT +2. The time now is 05:13 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.