![]() |
Quick Question (regarding setshootparams)
Ok so if I put this into a weapon npc (ie. a gun)
NPC Code:setshootparams(shoot,this.gunpow); Is it possible to put the NPC Code:function onActionProjectile() In another NPC or does it HAVE to be in the same weapon that the setshootparams was set in? |
Quote:
|
Awesome. If that script is used "setshootparams(shoot,this.gunpow);", how would that be used in another NPC? Is this.gunpow; still able to be used or does that turn into a param?
|
Quote:
It will turn into a param. NPC Code: NPC Code: Or you could do whatever you want with the params really. You can put the onActionProjectile in any other npc, probably a system npc. |
Alright awesome. :) Thanks very much for the help.
Edit: Ok it doesn't appear to work. NPC Code:function shoot() That's in the Weapon / Gun. In a system NPC (-Systems/HP) NPC Code:function onActionprojectile() Can anyone see any errors in either of those 2 scripts? |
| All times are GMT +2. The time now is 01:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.