Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- item script HookshotGrabShield
- {
- void run()
- {
- lweapon hook;
- do
- {
- Waitframe();
- for(int q = 1; q <= Screen->NumLWeapons(); ++q)
- {
- lweapon l = Screen->LoadLWeapon(q);
- if(l->ID == LW_HOOKSHOT)
- {
- hook = l;
- break;
- }
- }
- }
- until(hook);
- while(hook->isValid())
- {
- for(int w = 1; w <= Screen->NumNPCs(); ++w)
- {
- npc n = Screen->LoadNPC(w);
- if(Collision(n, hook))
- n->BreakShield();
- }
- Waitframe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement