Yes Gazz but i want to look at the scene, i already found the bodies =PA scene is nothing but a collection of body files and you can access the body file directly.
Thx someone else
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
Yes Gazz but i want to look at the scene, i already found the bodies =PA scene is nothing but a collection of body files and you can access the body file directly.
Code: Select all
ships\props\extern_M4_dock;ANIMATEDF_DOCKPORT_FIGHTER|ANIMATEDF_DOCKPORTDF_FDWPUSH;0
Code: Select all
if [THIS] is script 'myscript' on stack of scripts on task 0
do stuff stuff
else
call script !ship.signal.killed (the stock ego soft one)
end
return null
Two ideal ways.s9ilent wrote:Q: When a ship is killed, is it still running its original task 0 task?
e.g. I want to replace the signal signal.killed, but I want it to only run on ships running my scripts. So is using the following statement valid? Or does the task 0 get stopped prior to signal.killed being run?
Code: Select all
if [THIS] is script 'myscript' on stack of scripts on task 0 do stuff stuff else call script !ship.signal.killed (the stock ego soft one) end return null
Code: Select all
if [THIS]->get local variable: name='mysigkilled.enabled'
do stuff stuff
else
call script !ship.signal.killed (the stock ego soft one)
end
Code: Select all
START $newleader->command $cmd : arg1=$cmdtarget, arg2=$cmdtarget2, arg3=$cmdpar1, arg4=$cmdpar2
no its not still running, as the signal script also runs on task 0, so it'll overright its9ilent wrote:I'm hoping to specifically overwrite the stock script, as I want to replace the on death message. (I want to do lots of other stuff, but they could easily be done on a sec signal)
The use of a global variable is not recommended either, as it will not pick up the issue that the script may not be running (as it could've been terminated)
Q: Which once again leads to the original question, is the ships original task 0 still running, when the signal.killed is fired?
those 4 are just the arguments of the command.s9ilent wrote:Also, on a similar note
Q: The signal.killed arguments, what do they do?
killer, the killer, obvious
cmd, the command, obvious
cmd targ1, the command target, obvious
cmd targ 2, the cmd target 2, obvious
cmd par1 ????
cmd par2 ????
Given that the signal uses this line:I can only assume.. they are command arguments... but on the other hand, par ~ partner?Code: Select all
START $newleader->command $cmd : arg1=$cmdtarget, arg2=$cmdtarget2, arg3=$cmdpar1, arg4=$cmdpar2
this is hardcoded when the ship is killed, so you cant remove it, only add your own on tops9ilent wrote:Another question...
Q: ... Where/ how to I over write the stock logbook message on ship death.. I thought it was in the signal.killed.. but its not
If the secondary signal fires first and your secondary signal includesCycrow wrote:this is hardcoded when the ship is killed, so you cant remove it, only add your own on top