.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   SEV Modders Knowledge Base (http://forum.shrapnelgames.com/forumdisplay.php?f=154)
-   -   ComponentEnhancement.txt Knowledge Base Thread (http://forum.shrapnelgames.com/showthread.php?t=32146)

President_Elect_Shang December 5th, 2006 11:23 AM

ComponentEnhancement.txt Knowledge Base Thread
 
As work on my TC continues I find new challenges which lack examples in the few mods and single other TC out at this time. Yes these are the early days (for those reading this years from now) and most of the work I am doing seems to groundbreaking for SE5. Not that I am saying I’m the first one to think of this stuff. No, that would be very conceited and that is not me! I just appear to be the first one posting info on it. So what have I gone and done now?

If you are building a component enhancement (mount) which you only want to affect certain weapons (or non-weapon) components here is how you need to set it up:

<font class="small">Code:</font><hr /><pre>
Number Of Requirements := 1
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Describe what components this affects.
Requirement 1 Formula := Does_Component_Have_Ability("AI Tag 01")
</pre><hr />

This is obviously an edited version of what I was trying to accomplish. So let me describe my dilemma. I wanted to create a component enhancement that would only work on certain weapons. I couldn’t use the Get_Component_Weapon_Type() =”?” because I didn’t want it to affect all of the weapons of the types in question. Yes two types can be done very easily so I won’t bore you with the how… By giving the weapons I want affected the AI Tag 01 ability the mount will only work in them and poof problem solved. An example of the AI Tag 01 ability maybe:

<font class="small">Code:</font><hr /><pre>
Number Of Abilities := 1
Ability 1 Type := AI Tag 01
Ability 1 Description :=
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 0
Ability 1 Amount 2 Formula := 0
</pre><hr />

The AI Tag ability can range from 01 to 20. To the best of my knowledge no one has tested outside this range.


All times are GMT -4. The time now is 03:14 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.