- Posts: 5363
- Thank you received: 0
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
@echo off
color 0B
cd..
cd..
IF exist sweaw.exe Start sweaw MODPATH=Mods\Modname LANGUAGE=GERMAN
IF exist swfoc.exe Start swfoc MODPATH=Mods\Modname LANGUAGE=GERMAN
Please Log in to join the conversation.
Especially when the game runs with 2x speed.Object.Play_SFX_Event("Sound_Effect")
Please Log in to join the conversation.
Please Log in to join the conversation.
Then I found out the .Despawn() command doesent likes to be used inside a for loop, which caused the crash.if Distance < 160 then
Unit.Despawn()
end
Table_Unit[1].Despawn()
Please Log in to join the conversation.
The change owner command can crash the script if it is placed under or over a wrong command.Object.Change_Owner(Find_Player("Neutral"))
function Destroy_Nearby_Units ()
if The_Ship ~= false then
Object.Despawn()
The_Ship = false
end
end
Register_Death_Event is a function that constantly checks for the destruction of that unit, and appearently contributed to some similar loading crashes in conjunction with my if statement above and the loading process.Register_Death_Event(The_Ship, Destroy_Nearby_Units)
Please Log in to join the conversation.
Please Log in to join the conversation.