Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Script Question
Script Question [message #490589] Mon, 30 March 2015 19:26 Go to next message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
Is there a way to get an independent script's parameters sent to an ssgm plugin?

[Updated on: Mon, 30 March 2015 20:01]

Report message to a moderator

Re: Script Question [message #490590 is a reply to message #490589] Mon, 30 March 2015 23:56 Go to previous message
dblaney1 is currently offline  dblaney1
Messages: 358
Registered: March 2014
Location: United States
Karma: 0
Commander
You should be able to get the script parameters in a for loop structure like this. This code checks to see if a powerup if one of the units starting weapons.

for (int i = 0;i < Soldier->ScriptNameList.Count();i++) {
	if (Soldier->ScriptNameList[i] == "M00_GrantPowerup_Created") {
		if (Soldier->ScriptParameterList[i] == PowerUp->Get_Name()) {
			return true;
		}
	}
}


[Updated on: Mon, 30 March 2015 23:57]

Report message to a moderator

Previous Topic: Renegade X SDK
Next Topic: #KIWI FOR MOD
Goto Forum:
  


Current Time: Mon Nov 25 15:52:37 MST 2024

Total time taken to generate the page: 0.00614 seconds