Modding, Mission Design, and Coding > The Scripting Workshop

Confused about executing scripts.

(1/2) > >>

Scooby_Doo:
I've been trying to get Wanders auto-gun convergence to work.  I've created the scripting.tbl and put the code in there.  What else am I missing?  :confused:

Wanderer:
Recent head branch build`(NOT 3.6.9 build)?

Properly named weapons (dummy weapon and a real one)?

Scooby_Doo:
I grabbed the build from the lastest builds thread.  Whats a dummy weapon?

Wanderer:
Well the script actually runs every single frame of the game (like all lua scripts unless otherwise defined)

It sort of waits for appearance of weapon named 'Corona', which is used in the script as dummy weapon.. That is as soon as game detects any weapon of that particular class, it removes that weapon from game (setting the remaining lifetime of the weapon to 0 s) it tries to search for the shooter of that weapon and then assigns target according to that and calculates new vectors for the weapon. After this the script generates a new weapon of 'Halo' class which is 'pointed' at the newly calculated convergence point.

So the 'Corona' is a dummy weapon. That is in that script the 'Corona' is used only for triggering the rest of the script.

Scooby_Doo:
Ok how do you implement different types of existing weapons with Corona then?

Navigation

[0] Message Index

[#] Next page

Go to full version