- Joined
- Feb 8, 2013
- Messages
- 1,479
I have a system that lets certain unarmed heroes pick up weapons and then the weapons attaches. If you put the weapon down or sell it, then the weapon disappears. However, there is about a 2 second delay on the destroy special effect. Can someone explain?
I give the sword to the princess
Ok, so I wrote this from memory, but I'm at work and I don't have my home CPU, please don't tell my boss. My apologies to anyone who wants to help but needs to see more. This is fairly simple. I think it might be somewhere else in my triggers and not in my inventory system. I know I have other triggers that leak but I have them set to be turned off after use. Ya, I know (call destroy) is better, but there has been no lag / delay in anything until now.
I give the sword to the princess
-
Event -
- Unit - unit acquires an item
-
Condition -
- Item-type Comparison (Item-type) Equal to (My Sword Item)
- Unit-type comparison (unit-type) Equal to (My Hero with Empty Hands)
-
Actions -
- Set Variable - Item[1] = (item being manipulated)
- Special Effect - Create Special Effect at hand , right of (My Unit with Empty Hands) using (Some sword model I downloaded)
- Set Variable - Attachment[1] = (last created special effect)
- Event -
- Unit - loses an item
-
Conditions -
- Item-type comparison (item-type) equal to (my item-type variable)
-
Actions -
- Special Effect - Destroy Special effect - (variable effect [x])
Ok, so I wrote this from memory, but I'm at work and I don't have my home CPU, please don't tell my boss. My apologies to anyone who wants to help but needs to see more. This is fairly simple. I think it might be somewhere else in my triggers and not in my inventory system. I know I have other triggers that leak but I have them set to be turned off after use. Ya, I know (call destroy) is better, but there has been no lag / delay in anything until now.