Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Is There a FlagpoleUSThrown?

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
MrWheatley
Fighter
Fighter
Posts: 13
Joined: Wed Jun 06, 2018 7:36 am

Is There a FlagpoleUSThrown?

Post by MrWheatley » Thu Jul 26, 2018 2:43 am

Is there something like flagpoleusthrown? Or is there someway to make items of collision when used like this:

Code: Select all

Game.CreateObject("FLAGPOLEUSTHROWN", ply.GetWorldPosition() + new Vector2(ply.FacingDirection*10, 10), 0f, new Vector2(ply.FacingDirection*50, 5), 0f);
0 x

User avatar
Motto73
Superfighter
Superfighter
Posts: 297
Joined: Mon May 09, 2016 7:35 am
Title: Superfighter Royale
SFD Account: Motto73
SFD Alias: Motto73, Pack-Man!
Started SFD: Multiplayer Test Demo
Location: Sunny City
Gender:
Age: 19

Post by Motto73 » Thu Jul 26, 2018 6:00 pm

There is no object called that but you can spawn a normal one and change the TrackAsMissile value. Example:

Code: Select all

IObject obj= Game.CreateObject("FlagpoleUS00", ply.GetWorldPosition() + new Vector2(ply.FacingDirection*10, 10), 0f, new Vector2(ply.FacingDirection*50, 5), 0f);
obj.TrackAsMissile(true);
Note: I'm doing this on phone without access to the api so check the command first and then the id of the flag.
2 x
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests