| 06-07-2009, 04:41 PM | #1 |
Hi I'm new on the forum but not in warcraft, I have create a inventory using units when you select a unit it was like you select a item. Iwas runing but infortunatly when you pick up 4 item warcraft III shut down automaticly. I download inventory demo to create a new systeme but i dont like the position of item and i want to make my own inv. I see they use destructible to select item with mouse. So can you explain to me how to use the fonction of mouse click ? PS I'm french so scuse me for my english |
| 06-07-2009, 08:42 PM | #2 |
Post some trigger code when you ask questions like that, it will be easier for people to answer. |
| 06-08-2009, 08:23 AM | #3 | |
Quote:
and to change the layout is not really a problem... http://keep4u.ru/imgs/b/2009/06/08/6...8fe342b116.jpg |
| 06-08-2009, 05:36 PM | #4 |
TIP: Ignore Toadcop, he really is trying to help but he usually does so by typing his brain process directly on the keyboard without a buffer. |
| 06-08-2009, 11:03 PM | #5 |
^ true but. i wrote what hes looking for. trackables. // wow lol i couldn't find a tutorial about trackables here... JASS:
constant gameevent EVENT_GAME_TRACKABLE_HIT = ConvertGameEvent(7)
constant gameevent EVENT_GAME_TRACKABLE_TRACK = ConvertGameEvent(8)
native TriggerRegisterTrackableHitEvent takes trigger whichTrigger, trackable t returns event
native TriggerRegisterTrackableTrackEvent takes trigger whichTrigger, trackable t returns event
// EVENT_GAME_TRACKABLE_HIT
// EVENT_GAME_TRACKABLE_TRACK
constant native GetTriggeringTrackable takes nothing returns trackable
//============================================================================
// Trackable API
native CreateTrackable takes string trackableModelPathNew, real x, real y, real facing returns trackable
//============================================================================
thats all. |
| 06-09-2009, 02:33 AM | #6 | |
Can we post outside links?
What I know of trackables: -Too many lag the game -Cannot be removed from the game -For variables use: H2 I+ 1 - first H2I, and don't create any handles the first time when putting the trackables into an array variable array. |
| 06-09-2009, 01:12 PM | #7 |
GetTriggerPlayer() doesn't work for them. |
