Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-20-2011, 09:39 PM
gwFCCtennis gwFCCtennis is offline
Chaotic
gwFCCtennis's Avatar
Join Date: Aug 2010
Location: VA
Posts: 229
gwFCCtennis is on a distinguished road
Send a message via AIM to gwFCCtennis
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?
Reply With Quote
  #2  
Old 02-20-2011, 09:47 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Default carrying system is very inflexible, you'll have to go custom to do anything exciting.
__________________
Quote:
Reply With Quote
  #3  
Old 02-20-2011, 09:55 PM
gwFCCtennis gwFCCtennis is offline
Chaotic
gwFCCtennis's Avatar
Join Date: Aug 2010
Location: VA
Posts: 229
gwFCCtennis is on a distinguished road
Send a message via AIM to gwFCCtennis
Quote:
Originally Posted by fowlplay4 View Post
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.
Reply With Quote
  #4  
Old 02-20-2011, 11:39 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:00 PM.


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