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 03-23-2002, 01:16 PM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
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? :grrr:
Reply With Quote
  #2  
Old 03-23-2002, 02:22 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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)
Reply With Quote
  #3  
Old 03-23-2002, 09:33 PM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
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.
Reply With Quote
  #4  
Old 03-23-2002, 11:58 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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
__________________
[signature]insert here[/signature]
Reply With Quote
  #5  
Old 03-24-2002, 06:46 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
When an action is triggered on a player then ALL weapon
scripts of that player get the action<actionname> event.
Reply With Quote
  #6  
Old 03-24-2002, 10:52 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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
__________________
[signature]insert here[/signature]
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 07:15 PM.


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