Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Triggeraction && hidden npcws (https://forums.graalonline.com/forums/showthread.php?t=26165)

Gohan43331 03-23-2002 01:16 PM

Triggeraction && hidden npcws
 
I have a weapon that sends out a triggeraction to just infront of them with a few parameters. I have a hidden npcw that's(or will be) in another player's inventory, which needs to recieve that action.
Can i do that? or is triggeraction if (action<name>) just for npc's on a level?:confused: :grrr: :confused:

Python523 03-23-2002 02:22 PM

If the action is triggered on the player, the npc in the inventory will recieve the trigger
(So if I used an action on a player say freeze and the player had the script
if (actionfreeze)
the script will run)

Gohan43331 03-23-2002 09:33 PM

Ok, just wondering if it would work with hidden npcw's as well. It hasn't worked well yet offline, so i had my doubts.

screen_name 03-23-2002 11:58 PM

a npc weapon only trigger the same npc weapon of the other player

so if the triggering npc weapon isn't hidden, then u would use callweapon hiddenweaponindex; then use a triggeraction in the hidden npc weapon

Admins 03-24-2002 06:46 AM

When an action is triggered on a player then ALL weapon
scripts of that player get the action<actionname> event.

screen_name 03-24-2002 10:52 PM

Quote:

Originally posted by Stefan
When an action is triggered on a player then ALL weapon
scripts of that player get the action<actionname> event.


o, because i remember in the newfeatures2001.txt, it said that the player must have that weapon to work :P

okay, nm my previous post then


All times are GMT +2. The time now is 02:23 PM.

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