Okay
I am double posting in this thread just so it will bump and people will know I attached a new file.
I finally got a chance to play around with this thing this morning, and I had some success.
I am attaching the 3 scripts necessary for the effect, and I am also attaching a simple level which should demonstrate how to set it up.
Here is a brief explination of what is going on and the directions, just in case there is any confusion...
The three scripts are as follows:
appearantigravity_ce ... This is the appear script for the entity that the player will be associated with in order to achieve an antigravity effect.
I modified the stock script so the setalphafade=0 instead of 100 so the entity will be invisible.
I also added a coloff so the entity will have no collisions and the player won't get stuck on it should they run into it.
plrantigravity_c...This is the script for the Main AI of the Trigger Zone that will define the area to have the anitgravity effect for the player.
In this example it is a room, and you can layout a trigger zone for large areas by holding the left shift key while you are placing the zone.
plrantigravity_e...This is the script for the MAIN AI of the entity, which in our case I used a sci-fi battery.
The setup for this effect is fairly easy...
1) Place your trigger zone for the desired area and assign the plrantigravity_c for its AI MAIN.
2) Place an invulnerable (health=0) and immobile (isimmoble=YES) entity in your map and assign the appearantigravity_ce for its appear script.
Also assign the plrantigravity_e for its AI MAIN.
3) Turn off the Physics for the entity. (Physics On? = NO)
4) Name the battery
age1 (this is short for
Anti
Gravity
Entity
1)
If you want to use another name, then you will have to edit the plrantigravity_c script for the trigger zone to reflect that name change for the target.
That is it for the setup.
I ran into problems with the jump key making the player get stuck, and I finally got it working half right.
If you are moving while you hit the space bar for a jump then you will float across at that speed and direction until you hit a wall or something else to stop you.
Then you are stuck, but you can get unstuck by hitting the jump (space bar) again.
If you want to defy the anitgravity and fall with gravitational forces then simply hold down the space bar.
This is not perfect, but maybe it comes close to what you want and can do until we find a better solution.
Make sure you keep the folder structure right when installing the files.
The scripts belong in scripbank\conjured folder, so create a conjured folder in your scriptbank if you don't already have one.
Have fun and let me know what you think.