Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 10 11 12 13 14 … 18 Next »
ship_cannon problems : bug ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
ship_cannon problems : bug ?
28-10-2015, 03:47 PM,
#1
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
ship_cannon problems : bug ?
Hey again Person, I have a problem when I use getWirelink() on a ship_cannon at script startup (to store on a table) and then on chat listen I get the wirelink stored in table and I do v["Fire"] = 1 on it however the weapon seams to be ignoring the input set using starfall but handles input set using normal wiremod.

The problem does not appear on weapons that have a vector target by wiremod...

I hope you can do something.

Thanks by advance,
Yuri6037
Find
Reply
28-10-2015, 03:59 PM, (This post was last modified: 28-10-2015, 04:00 PM by SuperPlayer.)
#2
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: ship_cannon problems : bug ?
I am doing the same thing in my code and it just works fine. This is the code i am using, maybe it helps you to identify an error in yours:

for i,v in pairs(Cannons) do--Note that Cannons is an array of entities
Can = Cannons[i]:getWirelink()
Can["Fire"] = 1
end
Also if you could give the loop it would help us to help you. I know you dont want to give out "secrets", but there is really nothing secret on a for loop.Big Grin

SuperPlayer
Find
Reply
28-10-2015, 05:43 PM,
#3
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: ship_cannon problems : bug ?
(28-10-2015, 03:59 PM)SuperPlayer Wrote: I am doing the same thing in my code and it just works fine. This is the code i am using, maybe it helps you to identify an error in yours:

for i,v in pairs(Cannons) do--Note that Cannons is an array of entities
Can = Cannons[i]:getWirelink()
Can["Fire"] = 1
end
Also if you could give the loop it would help us to help you. I know you dont want to give out "secrets", but there is really nothing secret on a for loop.Big Grin

SuperPlayer

It's not exactly what I'm doing. I stored the wirelink at the script startup. I'm not re-calling the getWirelink() method. I stored it once and then I use it when nessessary.
Find
Reply
28-10-2015, 05:47 PM,
#4
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: ship_cannon problems : bug ?
You'll have to post the relevant parts of the code. There's nothing special about the wirelink to a ship cannon.
Find
Reply
28-10-2015, 05:55 PM, (This post was last modified: 28-10-2015, 05:56 PM by Yuri6037.)
#5
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: ship_cannon problems : bug ?
Problem solved...
Sorry for annoyance...
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.