Page 1 of 1

can this be done with scripting?

Posted: Tue Jul 25, 2006 12:13 am
by sundriedprawn
ok can this be done; to script a projectile to shoot into the sky by pressing a ctrl then script and effe (while the effe is there make the game have low gravity-a script of course) to appear then make a projectile shoot out of where the effe is and the effe disapearing ALSO i forgot to mention making the projectile killing everything / one when it hits the ground

P.S if this did not make sense its not my fault

Posted: Tue Jul 25, 2006 3:00 am
by xXAnubisXx
That didn't make sense, and it is you're fault. :P

Posted: Tue Jul 25, 2006 3:32 am
by xzodia
it kinda made sense and yes i think it could be scripted

Posted: Tue Jul 25, 2006 7:34 am
by a mammoth
to bad scripting is a pain though, until someone comes out with a script compiler you might not want to even try, becuase its just a pain.

Posted: Tue Jul 25, 2006 10:19 am
by Doom
This is perfectly possible and seems cool.

Also Scripts aren't hard if you know what you are doing and read the tut. Well You also have to be somewhat familliar with hex. Since I am atleast I don't find it hard...

Good Luck.

-Doom

Posted: Tue Jul 25, 2006 10:21 am
by Soldier of Light
Yes, it is possible. And it's actually not a bad idea...

The easiest way to trigger a script is using a switch. I'm not sure of the content of the script... but the trigger and basic idea is good. Using a switch to trigger the firing of a projectile is quite simple.

Posted: Tue Jul 25, 2006 3:01 pm
by sundriedprawn
kk

Posted: Tue Jul 25, 2006 6:30 pm
by n64nerd
edit:nm, I wasn't logged in. Disregard this.

Posted: Wed Jul 26, 2006 3:15 pm
by sundriedprawn
ok im not sure what scripts id have to use i know i need

void Physics_set_gravity
void Unit_kill

and whats is cs_switch?