![]() |
Execute code from string?
I know the code below fails, but can anyone provide a solution to concatonate the eDamage string & execute the randomly selected aircraft.hitNamed(part.NamedDamageTypes. line?
Code:
string[] eDamage = |
Prozess.Start is for starting external programms for example:
Process.Start("http://google.com/search?q= Help me"); would start your browser with a google search for "Help me". Its not for execute little c# snippets ;). |
Quote:
|
These?:
Code:
private void damageAiControlledPlane(AiActor actorMain) |
I think you might have to list the items in a list then random select an item(line by number) to use. This may however have a parse problem where you are transfering built in code to string types(listing) and back again.(am I sick of parsing problems yes I am)
might have some syntax errors in the following, but something like, (yes this came from Kodiak :)) Code:
|
All times are GMT. The time now is 11:06 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.