Need Help With AirStrike Plugin!

Assassin

Plugin Developer
Plugin Developer
Apr 9, 2017
190
195
43
25
Iran
Hi, first see these videos to know what i mean with AirStrike!
i used this code to make an explode in where admin ls looking too:

Python:
class Strike:
    def On_Command(self, Player, cmd, args):
        if cmd == "strike":
            if Player.Admin or Player.Moderator:
                hit = UnityEngine.Physics.RaycastAll(Player.PlayerClient.controllable.character.eyesRay)
                if len(hit) > 0:
                    hit[0].point.y += 2
                    hitlocation = hit[0].point
                    #Player.TeleportTo(hitlocation)
                    World.Spawn(";explosive_charge", hitlocation, 10)
                else:
                    Player.MessageFrom("Strike", "You are not looking at anything!")
            else:
                Player.Notice("✘", "You are not allowed to use this command !")
but i need to use AirDrop Plane to comes there and Drop nothing
then after 5 or 6 seconds in that place spawn 20 f1 grenads ( because C4 ham some bugs)
is it possible? if yes how?
 

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
871
43
Canada
Hi, first see these videos to know what i mean with AirStrike!
i used this code to make an explode in where admin ls looking too:

Python:
class Strike:
    def On_Command(self, Player, cmd, args):
        if cmd == "strike":
            if Player.Admin or Player.Moderator:
                hit = UnityEngine.Physics.RaycastAll(Player.PlayerClient.controllable.character.eyesRay)
                if len(hit) > 0:
                    hit[0].point.y += 2
                    hitlocation = hit[0].point
                    #Player.TeleportTo(hitlocation)
                    World.Spawn(";explosive_charge", hitlocation, 10)
                else:
                    Player.MessageFrom("Strike", "You are not looking at anything!")
            else:
                Player.Notice("✘", "You are not allowed to use this command !")
but i need to use AirDrop Plane to comes there and Drop nothing
then after 5 or 6 seconds in that place spawn 20 f1 grenads ( because C4 ham some bugs)
is it possible? if yes how?
World. airdropAt(hitlocation)
Then activate timer
And then when timer callbacks comes spawn the we can also save hit locTion in ds
 

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
871
43
Canada
Hi, first see these videos to know what i mean with AirStrike!
i used this code to make an explode in where admin ls looking too:

Python:
class Strike:
    def On_Command(self, Player, cmd, args):
        if cmd == "strike":
            if Player.Admin or Player.Moderator:
                hit = UnityEngine.Physics.RaycastAll(Player.PlayerClient.controllable.character.eyesRay)
                if len(hit) > 0:
                    hit[0].point.y += 2
                    hitlocation = hit[0].point
                    #Player.TeleportTo(hitlocation)
                    World.Spawn(";explosive_charge", hitlocation, 10)
                else:
                    Player.MessageFrom("Strike", "You are not looking at anything!")
            else:
                Player.Notice("✘", "You are not allowed to use this command !")
but i need to use AirDrop Plane to comes there and Drop nothing
then after 5 or 6 seconds in that place spawn 20 f1 grenads ( because C4 ham some bugs)
is it possible? if yes how?
I wil prepare code for you when i'm home
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
610
63
I do not know if you can do grenade spawn ... call an airdropat inside a timer you can fuck something on the server ... you should use loom
 

Assassin

Plugin Developer
Plugin Developer
Apr 9, 2017
190
195
43
25
Iran
Editing drop++
drop ++ is for all AirDrops in server,
i want to have AirDrop and AirStrike both in server,
so there must a way to

World. airdropAt(hitlocation)
remove.airdrop.drops
Then activate timer
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,465
925
113
Australia
drop ++ is for all AirDrops in server,
i want to have AirDrop and AirStrike both in server,
so there must a way to

World. airdropAt(hitlocation)
remove.airdrop.drops
Then activate timer
You'll have to spawn the plane, I don't think there is a way to call the plane and then remove the airdrop unless you loop over all the entities and find the airdrop and remove it